Download the AduJava demo archive.
Extract the AduJava.zip onto your hard drive.
Edit the setpath.bat file so that it points at the directory in which java is installed on your computer. On my computer java is in C:\j2sdk1.4.2_07\bin so the set path command is:
set path=%path%;C:\j2sdk1.4.2_07\binOr as viewed through everyone's favourite text editor:
Open a DOS command prompt window.
Change to the directory containing AduJava.class:
cd C:\AduJava
Run the setpath.bat file that you prepared earlier:
setpath
Run the AduJava demo using the java launcher:
java AduJavaThe default actions for the demo are to set all relays off and then set relay K0 on with the "mk1" command. You should hear a click if you run this with an ADU200 board that has mechanical relays.
The screen should look like this:
Note: The set path command displays a long string of
directories that will not match the display on your
screen. That is OK since the path should match your
environment and not mine. Just ensure that the directory
containing java is included in the path
displayed on your screen.
Our example board has LEDs wired to the relays so that
we can see that relay K0 is on.
More examples can be seen here.