看板 java 關於我們 聯絡資訊
我用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
superlubu:錯誤訊息很清楚的告訴你了吧 06/29 16:47
ox5566:是classpath沒有設定好嗎??? 可是我都有把jar的路逕寫進去 06/29 16:52
PsMonkey:那個找不到的 class 是誰提供的? 06/29 17:39
ox5566:comm那個嗎? 是java用來執行rs232的.. 06/29 17:43
hgs1906:rs232 是第三方套件嗎? 有放到專案的lib 或是jdk的lib 嗎 06/29 22:23