J2ME: Eclipse Error Fixes

ERROR:

java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main (Unsupported major.minor version 49.0)


SOLUTION:
  • Window > Preferences > Ant > Runtime > Ant Home... > Select C:/.../Ant directory
  • Window > Preferences > Ant > Runtime > Global Entries > Add External JARs... > Select C:/.../JDK142/lib/tools.jar

ERROR:

Errors running builder 'Preverification' on project 'XXXXXXXX' init init


SOLUTION:
  • Right Click Project > Properties > Java Build Path > Libraries tab > Add External JARS... > add CLDC1.1 stub from MPowerPlayer
  • Right Click Project > Properties > Java Build Path > Libraries tab > Add External JARS... > add MIDP2.0 stub from MPowerPlayer

No comments: