Forum: Mikrocontroller und Digitale Elektronik RTJ java sc12


von Michael Hörzinger (Gast)


Lesenswert?

Hello!

I use the example programm
C:\vm\simplertj-1.4.2-ippchip\projects-sc12\Pio
I modify the make.bat
______________________________________________________________________ 
__
@echo off
set JDK_HOME=C:\jdk1.3.1_01
set JVM_HOME=C:\vm\simplertj-1.4.2-ippchip
if %JDK_HOME%.==. goto SETHOME

echo Compiling...
%JDK_HOME%\bin\javac -target 1.3 -classpath
.;%JVM_HOME%\lib\javax.jar;%JVM_HOME%\lib\sc12.jar -bootclasspath
%JVM_HOME%\lib\java.jar *.java
if errorlevel==1 goto ERROR

echo Linking...
set CLASSPATH=%JVM_HOME%\lib\ClassLinker.jar
%JDK_HOME%\bin\java ClassLinker -f PIO
if errorlevel==1 goto ERROR
goto EXIT

:ERROR
echo Build failed
goto EXIT

:SETHOME
echo Missing JDK_HOME environment variable. For example: SET
JDK_HOME=C:\JDK1.3

:EXIT
pause
______________________________________________________________________ 
____
Subsequently i modify the PIO.java to a empty file which only contains


______________________________________________________________________ 
____
mport javax.events.*;
import java.util.*;
import sc12.hw.*;
import sc12.comm.*;

class PIO
{


    static void main(String[] Args)
    {

    }
}
______________________________________________________________________ 
_____
Now I want to use a fuction of sc12.comm in my PIO.java programm for
example
for rthe RS232

C:\vm\simplertj-1.4.2-ippchip\lib-source\sc12\comm inculdes the
files
make.bat
Parallel.java
Serial.java
TimeoutExeeption.java

Do i have to transform the Serial.java into a Serial.class?
Do i have to copy the Serial.class or Serial.java into the
C:\vm\simplertj-1.4.2-ippchip\lib folder?
Or what shell I to to make using sc12.comm fuctions posibble?

Please could you help me, thanks in Advance

Best greetings

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.