This looks strange because you wonder "what does an aJile driver have to do with BlackBox?" How is the aJile library getting mixed up with BlackBox? The answer is in the classpath order. In this case on my system it was: CLASSPATH=d:\java_lib\commapi\samples\BlackBox\BlackBox.jar;D:\aJile\Runtime_cldc\Rts;D:\j2sdk14\lib\comm.jar;D:\tini1.11\bin;
Here the problem is in the order of the classpath folders. BlackBox.jar is listed first, but then the aJile Runtime_cldc\Rts folder is next. Since the aJile runtime includes J2ME/CLDC support for javaxcomm, the BlackBox example is trying to use that to run on the PC, and this won't work. Reordering the paths so that the order is BlackBox.jar, then comm.jar, then others fixes this problem: CLASSPATH=d:\java_lib\commapi\samples\BlackBox\BlackBox.jar;D:\j2sdk14\lib\comm.jar;D:\aJile\Runtime_cldc\Rts;D:\tini1.11\bin; This points up a weakness in trying to have all your classpaths set up in your system environment. One ordering may not be what you want all the time. Fortunately there is a solution: the java -cp (classpath) option. For example, instead of adding BlackBox.jar and comm.jar to the environment, add paths to them on the command line: java -cp d:\java_lib\commapi\samples\BlackBox\BlackBox.jar;D:\j2sdk14\lib\comm.jar; BlackBox or, even better, by using our environment variables: java -cp %JAVA_LIB%\commapi\samples\BlackBox\BlackBox.jar;%JAVA_HOME%\lib\comm.jar; BlackBox |