LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 724|回复: 4

problem!!!!!!!!!!!!!!!!!!!!!

[复制链接]
发表于 2005-5-13 14:54:15 | 显示全部楼层 |阅读模式
I can't input any Chinese characteristic because of the input method proble.
Sorry about that.

:help
I installed jdk5.0 for linux AS4 but there's some odd problem.
When I try to run the Demo like $JAVA_HOME/demo/jfc/SwingSet2/SwingSet2.jar using this directive
     java -jar SwingSet2.jar
it will failed and return an error following


[adam@AdamCorp SwingSet2]$ java -jar SwingSet2.jar
Warning: -jar not understood. Ignoring.
Exception in thread "main" java.lang.NoClassDefFoundError: SwingSet2.jar
   at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
   at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
   at __gcj_personality_v0 (/usr/java/jdk1.5.0/demo/jfc/SwingSet2/java.version=1.4.2)
   at __libc_start_main (/lib/tls/libc-2.3.4.so)
   at _Jv_RegisterClasses (/usr/java/jdk1.5.0/demo/jfc/SwingSet2/java.version=1.4.2)

but I can run it with appletviewer. I am in trouble.
What' wrong with it?
Oh, I can't install eclipse either due to this problem.
Please help me, hacker. Thanks a lot!
发表于 2005-5-13 16:35:17 | 显示全部楼层
let me see your  path ?

$echo $PATH
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-13 17:08:58 | 显示全部楼层
Ok.Thank you.
[adam@AdamCorp ~]$ echo $CLASSPATH
.:/usr/java/jdk1.5.0/lib/tools.jar:/usr/java/jdk1.5.0/lib/dt.jar
[adam@AdamCorp ~]$ echo $JAVA_HOME
/usr/java/jdk1.5.0
[adam@AdamCorp ~]$ echo $PATH
/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/java/jdk1.5.0/bin:/home/adam/bin


That's all.
回复 支持 反对

使用道具 举报

发表于 2005-5-13 17:25:14 | 显示全部楼层
将path 中 java 部分提前试试??
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-13 17:46:08 | 显示全部楼层
hehe~, thank you very much!
It do the trick! Thanks a lot.
But why? Becaulse of the gcj?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表