|
I use Jcreator
import javabook. *;
class rr
{
public static void main (String args [])
{
MainWindow mainwindow;
mainwindow = new MainWindow ();
mainwindow.setVisible (true);
}
}
Then save it as rr.java.
Run F5 directly, prompt: Exception in thread "main" java.lang.noclassdeffounderror: rr
Also asked, some people say that the classpath is set incorrectly. My settings are:
.;% java_home%\lib;% java_home%\lib\tools.jar;
And if compiled before running, there will be: package javabook does not exist
No symbols found
May I ask how is this going?
It wo n’t work for a long time, expert advice! |
|