佑子
2006-07-18 18:18:01 UTC
我原本使用jdk1.4.2
現在要改成jdk1.5.0
我已裝好jdk1.5.0
然後open JubilderX欲進行以下設定
---------------------------------------------
1.Tools->Configure->JDKs,要把JDK5.0加進去。
2.Project->Project Properties->Paths-JDKs
選剛剛加入的JDK5.0
3.Project->Project Properties->Build-Java。
Language features設Java 2 SDK, v5.0 (generics enabled)
4.Project->Project Properties->Build-Java。
Target VM設Java 2 SDK, v5.0 and later
---------------------------------------------
以上步驟1、2我都setting好了
但是步驟3中,我的JbilderX並沒有Language features這個項目
步驟4中,Target VM的下拉選單中最多只到Java 2 SDK, v1.4.0 and later
並沒有Java 2 SDK, v5.0 and later
請問那位大大知道為什麼嗎?
因為醬子設定沒有完整
導致在compiler時會產生以下exception
"charAT.java": cannot access java.lang.Object,bad class file: C:\Java\jdk1.5.0\jre\lib\rt.jar\java\lang\Object.class,class file has wrong version 49.0,
should be 48.0,Please remove or make sure it appears in the correct
subdirectory of the classpath. at line 17, column 27"
thanks~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.248.221.44
現在要改成jdk1.5.0
我已裝好jdk1.5.0
然後open JubilderX欲進行以下設定
---------------------------------------------
1.Tools->Configure->JDKs,要把JDK5.0加進去。
2.Project->Project Properties->Paths-JDKs
選剛剛加入的JDK5.0
3.Project->Project Properties->Build-Java。
Language features設Java 2 SDK, v5.0 (generics enabled)
4.Project->Project Properties->Build-Java。
Target VM設Java 2 SDK, v5.0 and later
---------------------------------------------
以上步驟1、2我都setting好了
但是步驟3中,我的JbilderX並沒有Language features這個項目
步驟4中,Target VM的下拉選單中最多只到Java 2 SDK, v1.4.0 and later
並沒有Java 2 SDK, v5.0 and later
請問那位大大知道為什麼嗎?
因為醬子設定沒有完整
導致在compiler時會產生以下exception
"charAT.java": cannot access java.lang.Object,bad class file: C:\Java\jdk1.5.0\jre\lib\rt.jar\java\lang\Object.class,class file has wrong version 49.0,
should be 48.0,Please remove or make sure it appears in the correct
subdirectory of the classpath. at line 17, column 27"
thanks~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.248.221.44