错误preverifying类,运行我的应用程序来临

问题描述:

我想运行一个示例项目,但我在控制台上得到此错误,并且应用程序无法运行。 我不明白这个错误的含义。错误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) 

它可能与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

您必须在您的系统环境变量中设置JAVA_HOME

+1

有一个不同的解决方案接受答案..你遇到类似的错误,并为你工作吗?请详细说明。 – 2012-10-15 09:07:41

+0

是的,我也有这个错误。我已经尝试将编译器合规性设置更改为1.3,没用。现在为我设置变量作品 – nyto 2012-10-15 09:23:29