I actually developing J2ME project using S60 SDK, my project gives me the error,

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

Because I'm changing compliance level of project from 1.3 to 1.6 (I've installed) from ProjectProperties -> Javacompiler.

Basically when I'm creating new project from git repository it default comes with compliance level 1.3 so, I changed it.

Because in two classes I'm using String... & @SuppressWarnings("rawtypes")

This error continue if I change back compliance level to 1.3.

I don't understand why it's happening. I exactly can't sort out. But the only way I found is to create new project.

Please help.

有帮助吗?

解决方案

Stop using annotations and go back to Compliance level 1.3.

java-me development does not support Compliance level 1.5.

java-me code does not support annotations.

其他提示

I actually solve that error and now using jdk1.3 for projects in eclipse. thanks to QuickRecipesOnSymbianOS.

I've download and install jdk1.3.3 and supply it in eclipse preferences ->Java -> Installed JREs (path of the folder containing installed jdk). Instead of providing jre folder provide complete jdk folder. It will added to build path of your project.

After installation don't forget to set environment variable.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top