English 中文(简体)
正在获取 LinkageError : 错误的主版本, at met=6, 同时在 S60 模拟器上部署应用程序
原标题:I m getting LinkageError: bad major version at offset=6, while deploying app on S60 Emulator

我用S60SDK开发J2ME项目 我的项目给了我一个错误

Uncaught exception!
com.ibm.oti.error.LinkageError: (com/yoke/symbian/YokeApp) bad major version at offset=6
    at java.lang.Class.forNameImpl(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at com.nokia.mj.impl.vmport.VmPort.Class_forName(VmPort.java:71)
    at com.symbian.j2me.midp.runtimeV2.Application.constructAction(Application.java:490)
    at com.symbian.j2me.midp.runtimeV2.Application.startRequest(Application.java:435)
    at com.symbian.j2me.midp.runtimeV2.Application.event(Application.java:304)
    at com.symbian.j2me.midp.runtimeV2.ApplicationEvent.dispatch(ApplicationEvent.java:90)
    at com.symbian.j2me.midp.runtimeV2.ApplicationThread.run(ApplicationThread.java:30)
-VM verbose connection exited

因为我正在改变项目的合规水平,从1.3(我已安装)改为1.6(我已安装),从Propertys- & gt; Javacompiler 改为 Javacompiler 。

基本上当我从 Git 仓库创建新项目时, 默认会与第1.3 级的合规性有关, 所以,我改变了它。

因为两个班级的Im 使用字符串... & amp;

如果我把遵守水平调回1.3,这一错误就会继续。

我不明白为什么会发生。我完全搞不懂。但我发现的唯一方法就是创建新的项目。

请救救我

最佳回答

停止使用批注,然后回到遵守水平1.3。

java-me开发不支持1.5级遵约水平。

java-me 代码不支持附加说明 。

问题回答

我实际上解决了这个错误, 现在使用jdk1.3 来进行日食工程。 多亏了 QuickRecipes on SymbianOS 。

我下载并安装jdk1.3.3, 并以日蚀偏好 - & gt; Java - & gt; 已安装 JREs( 包含已安装 jdk 的文件夹路径) 的方式提供 jdk1.3.3 。 它将添加到构建您的工程路径中 。

安装后不要忘记设置环境变量 。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签