作者ox5566 (阿兴)
看板java
标题[问题] NetBeans IDE包成JAR後无法执行
时间Mon Jun 29 16:45:51 2009
我用NetBeans IDE写好的人机介面程式...在NetBeans上面执行都OK....
可是我包成JAR之後 ... 却无法执行了...希望有好心乡民可以跟我说解决方式....
以下是我包成JAR时...NetBeans给的讯息:
nit:
deps-clean:
Deleting directory D:\090515test\SIMTEST\build
Deleting directory D:\090515test\SIMTEST\dist
clean:
init:
deps-jar:
Created dir: D:\090515test\SIMTEST\build\classes
Compiling 2 source files to D:\090515test\SIMTEST\build\classes
Note: D:\090515test\SIMTEST\src\rs232\NewJFrame.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Copying 1 file to D:\090515test\SIMTEST\build\classes
compile:
Created dir: D:\090515test\SIMTEST\dist
Building jar: D:\090515test\SIMTEST\dist\SIMTEST.jar
To run this application from the command line without Ant, try:
java -jar "D:\090515test\SIMTEST\dist\SIMTEST.jar"
jar:
建置成功(总时间:0 秒)
下面这是我在cmd执行jar的错误讯息视窗如下:
http://0rz.tw/XP1h0
--
女:你喜欢我天使的脸孔,还是魔鬼的身材? !
男:我。。。我喜欢你的幽默感。
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 120.114.60.104
1F:推 superlubu:错误讯息很清楚的告诉你了吧 06/29 16:47
2F:→ ox5566:是classpath没有设定好吗??? 可是我都有把jar的路迳写进去 06/29 16:52
3F:推 PsMonkey:那个找不到的 class 是谁提供的? 06/29 17:39
4F:→ ox5566:comm那个吗? 是java用来执行rs232的.. 06/29 17:43
5F:推 hgs1906:rs232 是第三方套件吗? 有放到专案的lib 或是jdk的lib 吗 06/29 22:23