A
ahah
Unregistered / Unconfirmed
GUEST, unregistred user!
import java.applet.Applet;
import java.awt.*;
public class HelloWorld extends Applet{
public void paint(Graphics g){
g.drawString("HelloWorld",5,20);
}
}
存成HelloWorld.java
用javac HelloWorld.java 总是提示
HelloWorld.java:1: cannot access java
bad class file: d:/jdk1.3/bin/java.class
illegal start of class file
Please remove or make sure it appears in the correct subdirectory of the classpath
import java.applet.Applet;
错误
是怎么回事?
import java.awt.*;
public class HelloWorld extends Applet{
public void paint(Graphics g){
g.drawString("HelloWorld",5,20);
}
}
存成HelloWorld.java
用javac HelloWorld.java 总是提示
HelloWorld.java:1: cannot access java
bad class file: d:/jdk1.3/bin/java.class
illegal start of class file
Please remove or make sure it appears in the correct subdirectory of the classpath
import java.applet.Applet;
错误
是怎么回事?