[問題] JCreator可以Build卻無法Run

看板java作者 (咖啡)時間11年前 (2014/03/19 01:47), 編輯推噓2(203)
留言5則, 4人參與, 最新討論串1/1
最近剛開始摸JAVA,還是初學者 一開始是都用學校電腦裡的JCreator v5.0 LE 編譯運行都沒問題 在家裡電腦也安裝了JCreator v5.0 LE跟JDK檔 結果打開.java檔 Build完 Run時卻跑出... --------------------Configuration: <Default>-------------------- 用法: java [-options] class [args...] (執行類別) 或 java [-options] -jar jarfile [args...] (執行 jar 檔案) 選項包括: -d32 使用 32 位元資料模型 (如果有的話) -d64 使用 64 位元資料模型 (如果有的話) -server 選取 "server" VM -hotspot 是 "server" VM 的同義字 [已不再使用] 預設的 VM 為 server. -cp <class search path of directories and zip/jar files> ... ... 以下略 ... ... ... ... ... ... Process completed. 我有在網路上跟本板爬過文了,但方法都無解... 在命令提示字元裡面是可以執行的,但在JCreator裡面就無法 JDK檔的路徑設定也沒有錯... 想請問是不是還有哪裡設定有誤...感謝 ! 附上截圖 http://ppt.cc/RtlJ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 1.160.85.16

03/19 10:08, , 1F
跟你一模一樣 後來我都用命令提示字元...
03/19 10:08, 1F

03/19 12:19, , 2F
path classpath JAVA_HOME ?
03/19 12:19, 2F

03/20 02:14, , 3F
2F的意思是 ? 自學新手不太懂對不起 ...
03/20 02:14, 3F

03/20 16:03, , 4F
03/20 16:03, 4F

03/20 19:34, , 5F
用4F的方法解決了,感謝
03/20 19:34, 5F
補上解決辦法 This is a problem that JCreator developer's are aware of, and are trying to find a solution to. Discussion on JCreator's forum board about this The problem exists when a file is opened through windows explorer. In order to not experience this problem: Open JCreator. Open your file (do not close the JCreator Start Page tab). You should have no problems running your file as long as the Start Page tab is open (and in the first position). 之前有在簡體網站看到類似解決的辦法,但沒看懂 這次英文反而看懂了 感謝 ※ 編輯: good3583 來自: 36.226.134.177 (03/20 19:36)
文章代碼(AID): #1JA8RBeO (java)
文章代碼(AID): #1JA8RBeO (java)