F
fbinew
Unregistered / Unconfirmed
GUEST, unregistred user!
我在netbeans3.5.1 IDE环境下编译SerialBean这个类(自己创建的)出现如下错误
“SerialBean.java [243:1] inner classes cannot have static declarations
public static void main (String[] args)
^
Note: E:/sc/JAVA/MyProgram/SerialBean.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
1 error
编译 SerialBean. 时出错”
按上面的错误提示去掉“static”则又出现如下错误
属性窗口(编译器)显示“Note: E:/sc/JAVA/MyProgram/SerialBean.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
已完成 SerialBean.”
输出窗口显示“java.lang.NoClassDefFoundError: SerialBean (wrong name: Serial/SerialBean)”
Exception in thread "main"
这里是源程序
http://www.gjwtech.com/scomm/sc2javacommprog.htm
javax.comm包也安装了。
“SerialBean.java [243:1] inner classes cannot have static declarations
public static void main (String[] args)
^
Note: E:/sc/JAVA/MyProgram/SerialBean.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
1 error
编译 SerialBean. 时出错”
按上面的错误提示去掉“static”则又出现如下错误
属性窗口(编译器)显示“Note: E:/sc/JAVA/MyProgram/SerialBean.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
已完成 SerialBean.”
输出窗口显示“java.lang.NoClassDefFoundError: SerialBean (wrong name: Serial/SerialBean)”
Exception in thread "main"
这里是源程序
http://www.gjwtech.com/scomm/sc2javacommprog.htm
javax.comm包也安装了。