2011-04-26 20 views
5

我想運行一個示例項目,但我在控制檯上得到此錯誤,並且應用程序無法運行。 我不明白這個錯誤的含義。錯誤preverifying類,運行我的應用程序來臨

 
Packaging project ScheduleAir 
C:\Eclipse\plugins\net.rim.ejde.componentpack4.5.0_4.5.0.28\components\bin\rapc.exe -quiet codename=deliverables\Standard\4.5.0\scheduleair deliverables\Standard\4.5.0\scheduleair.rapc -sourceroot=C:\Documents and Settings\20041\workspace\ScheduleAir\src\com\intellisoft\schedule_air;C:\Documents and Settings\20041\workspace\ScheduleAir\src;C:\Documents and Settings\20041\workspace\ScheduleAir\res -import=C:\Eclipse\plugins\net.rim.ejde.componentpack4.5.0_4.5.0.28\components\lib\net_rim_api.jar C:\Documents and Settings\20041\workspace\ScheduleAir\bin 
Error preverifying class com.intellisoft.schedule_air.AppSettingScreen 
    VERIFIER ERROR com/intellisoft/schedule_air/AppSettingScreen.()V: 
Illegal type in constant pool 
Error!: Error: preverifier failed: C:\Eclipse\plugins\net.rim.ejde.componentpack4.5.0_4.5.0.28\components\bin\preverify.exe -d C:\DOCUME ... 
Packaging project ScheduleAir failed (took 0.437 seconds) 

回答

4

它可能與Eclipse中的編譯器目標級別有關嗎?對於BB,它應該設置爲1.3,而默認情況下,Eclipse將其設置爲1.5/1.6。詳情請查詢"More detail on preverification errors ?"

+0

非常感謝您,但應用程序未運行。 – MaheshBabu 2011-04-28 08:56:49

+0

當然,如果這不是一個解決方案,這個答案應該是從這樣的選擇。 – 2012-10-15 11:16:57

1

您必須在您的系統環境變量中設置JAVA_HOME

+1

有一個不同的解決方案接受答案..你遇到類似的錯誤,併爲你工作嗎?請詳細說明。 – 2012-10-15 09:07:41

+0

是的,我也有這個錯誤。我已經嘗試將編譯器合規性設置更改爲1.3,沒用。現在爲我設置變量作品 – nyto 2012-10-15 09:23:29

相關問題