【问题标题】:Error preverifying class, coming while running my app错误预验证类,在运行我的应用程序时出现
【发布时间】:2011-04-26 07:05:42
【问题描述】:

我正在尝试运行示例项目,但我在控制台上收到此错误并且应用程序无法运行。 我不明白这个错误是什么意思。

包装项目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 预验证类 com.intellisoft.schedule_air.AppSettingScreen 时出错 验证器错误 com/intellisoft/schedule_air/AppSettingScreen.()V: 常量池中的非法类型 错误!:错误:预验证失败:C:\Eclipse\plugins\net.rim.ejde.componentpack4.5.0_4.5.0.28\components\bin\preverify.exe -d C:\DOCUME ... 打包项目 ScheduleAir 失败(耗时 0.437 秒)

【问题讨论】:

    标签: blackberry java-me


    【解决方案1】:

    这可能与 Eclipse 中的编译器目标级别有关吗?对于 BB,它应该设置为 1.3,而默认情况下 Eclipse 将其设置为 1.5/1.6。详情请查看"More detail on preverification errors ?"

    【讨论】:

    • 非常感谢,但应用程序没有运行。
    • 当然,如果这不是一个解决方案,这个答案应该是这样的。
    【解决方案2】:

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

    【讨论】:

    • 有一个不同解决方案的公认答案。您是否遇到过类似的错误,这对您有用吗?请详细说明。
    • 是的,我也遇到了这个错误。我已经尝试将编译器合规性设置更改为 1.3,没用。现在设置变量对我有用
    猜你喜欢
    • 1970-01-01
    • 2019-02-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-09
    • 1970-01-01
    • 2022-06-25
    相关资源
    最近更新 更多