• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on HelloWorld in J2ME

 
jiang xuyi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Daniel Moore
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic