You are currently viewing the Java Espanol section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
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"
i use JCreator and works fine
my problem is when i try to use command line, where i can compiling but not execute
C:\javac MyProgram.java -> "works properly.."
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.