You are currently viewing the Java Espanol section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
1. i've went to My Computer>Prop..>advance opt..>Enviroment. var.>
and set the PATH in "C:\Develop\Java\jdk1.5.0_02\bin;%path%" that's where JDK has been installed
2. in System Variables.. CLASSPATH "C:\Develop\Java\jdk1.5.0_02\lib\tools.jar"
that's alright?
i use JCreator and works fine
my problem is when i try to use command line, where i can compiling but not execute
i mean
C:\javac MyProgram.java -> "works properly.."
but
C:\java MyProgram -> doesn't work says
Exception in thread "main" java.lang.NoClassDefFoundError: first
Check whether you've any package structure for your class, if Yes the check whether the class file is in class path, you've to use javac -d option to compile and place the class file in correct directory.
Regards,
Rakesh
January 5th, 2008, 04:46 AM
jomet
Guest
Posts: n/a
Hi,
otherwise add '.;' to CLASSPATH
ie. CLASSPATH ".;C:\Develop\Java\jdk1.5.0_02\lib\tools.jar"
regds
jomet.
---------------------------------------------
Once you start a working on something,
dont be afraid of failure and dont abandon it.
People who work sincerely are the happiest.