当前位置: 技术问答>java相关
请教几个问题
来源: 互联网 发布时间:2015-03-30
本文导语: C:J2SDK_Fortejdk1.4.0BIN>javac c:firstapplet.java c:firstapplet.java:3: 'class' or 'interface' expected Class firstapplet extends Applet ^ c:firstapplet.java:1: package Java.Applet does not exist import Java.Applet.*; ^ c:firstapplet.java:2: package Java.awt does not...
C:J2SDK_Fortejdk1.4.0BIN>javac c:firstapplet.java
c:firstapplet.java:3: 'class' or 'interface' expected
Class firstapplet extends Applet
^
c:firstapplet.java:1: package Java.Applet does not exist
import Java.Applet.*;
^
c:firstapplet.java:2: package Java.awt does not exist
import Java.awt.*;
^
3 errors
C:J2SDK_Fortejdk1.4.0BIN>java -v
Unrecognized option: -v
Could not create the Java virtual machine.
C:J2SDK_Fortejdk1.4.0BIN>java -version
java version "1.4.0-beta3"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b84)
Java HotSpot(TM) Client VM (build 1.4.0-beta3-b84, mixed mode)
c:firstapplet.java:3: 'class' or 'interface' expected
Class firstapplet extends Applet
^
c:firstapplet.java:1: package Java.Applet does not exist
import Java.Applet.*;
^
c:firstapplet.java:2: package Java.awt does not exist
import Java.awt.*;
^
3 errors
C:J2SDK_Fortejdk1.4.0BIN>java -v
Unrecognized option: -v
Could not create the Java virtual machine.
C:J2SDK_Fortejdk1.4.0BIN>java -version
java version "1.4.0-beta3"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b84)
Java HotSpot(TM) Client VM (build 1.4.0-beta3-b84, mixed mode)
|
Class firstapplet extends Applet
中Class改为小写class
import Java.Applet.*;
import Java.awt.*;
中Java也改为小写java
中Class改为小写class
import Java.Applet.*;
import Java.awt.*;
中Java也改为小写java