I learned j2me for palm yesterday. when i was compiling the helloworld prog by typing this statement on dos prompt javac -g:none -classpath c:\j2me_cldc\bin\api\classes;. -bootclasspath c:\j2me_cldc\bin\api\classes HelloWorld.java i am getting the following error. Fatal Error: Unable to locate package java.lang in classpath or bootclasspath My autoexec.bat in win98 is written with following contents. set JAVA_HOME=c:\jdk1.3 set PATH=%JAVA_HOME%\bin;c:\j2me_cldc\bin;%PATH% set CLASSPATH=.;%JAVA_HOME%\lib;c:\j2me_cldc\bin\api\classes set j2meclasspath=c:\j2me_cldc\bin\api\classes please help me in this regard if any one worked on this aspect.
Hi, The contents of your autoexec.bat file aren't relevant because in your command line, you explicitly set your classpath(s), and overrule the existing environment variables. Basically, look at the classpath locations, and verify that they contain the java.lang classes. As I remember, you have to put each jar or zip file in your classpath; you can't just put the directory in which the jars reside.
Run away! Run away! Here, take this tiny ad with you: