MyEclipse: BlackBerry plugin 6.0 NoClassDefFoundError: java.lang.Enum fenyoapa - Jun 18, 2012 - 10:49 AM Post subject: BlackBerry plugin 6.0 NoClassDefFoundError: java.lang.Enum
Hi, I have installed BlackBerry plugin and SDK 6.0 to my licenced MyEclipse 10.5 (Indigo).
I get this:
Error preverifying class com.google.zxing.BarcodeFormat
java/lang/NoClassDefFoundError: java/lang/Enum
Error!: Error: preverifier failed
In Eclipse Indigo it is working fine (but I wanna use it in MyEclipse).
I played with:
Properties -> Java Compiler -> Compiler Compliance Level (1.3-1.7)
Installed JREs
Java Build Path -> Libraries
I tried to set the Eclipse's SDK to use (instead of the one in MyEclipse)
but I cant resolve this.
When my project used BlackBerry SDK 5.0 it was working fine, but the com.google.zxing.BarcodeFormat is available only in 6.0.
Can somebody help?support-swapna - Jun 18, 2012 - 01:37 PM Post subject:
fenyoapa,
Sorry that you are seeing this issue.
I have escalated it to a dev team member. They will get back to you.
Sorry for inconvenience caused.fenyoapa - Jun 18, 2012 - 02:41 PM Post subject: BlackBerry plugin 6.0 NoClassDefFoundError: java.lang.Enum
Ok, thank you. I'm waiting for the reply.support-swapna - Jun 19, 2012 - 05:30 AM Post subject:
fenyoapa,
Can you please give us additional information to help investigate the issue?
1. Can you please copy paste the Installation Details from MyEclipse > Installation Summary > Installation Details ?
2. How did you install the BB plugin? If you have downloaded it as zip file, then please share the download link. If you have used an update site, please share the details.
3. Did this plugin install OK on previous releases of MyEclipse ?
4. When exactly do you see the error? Please share the details of what exactly you were doing at the time of occurrence of the error. List out the steps in detail to help us replicate the issue at our end.
5. Clear the contents of the .log file which is located at <workspace dir>/.metadata/.log. Replicate the issue and copy paste the contents of the .log file here for us.fenyoapa - Jun 19, 2012 - 11:22 PM Post subject: BlackBerry plugin 6.0 NoClassDefFoundError: java.lang.Enum
Dear Swapna,
here is my answers, please read point 4 first, maybe the solution is there (somewhere...)
*** System properties:
OS=WindowsVista
OS version=6.1.0
OS arch=x86
Profile arch=x86
Window system=win32
Java version=1.6.0_13
Workspace=file:/C:/Users/Laci/Workspaces/MyEclipse 10/
VM Args=-Xmx512m
-XX:ReservedCodeCacheSize=64m
-Dosgi.nls.warnings=ignore
-XX:MaxPermSize=512m
-Djava.class.path=C:\Users\Laci\AppData\Local\Genuitec\MYECLI~1\../Common/plugins/ORB7B5~1.JAR
*** Subscription information
Product Id: E2MY (MyEclipse Standard Subscription)
License version: 2.1
Full Maintenance Included
Subscription expiration date (YYYYMMDD): 20130516
Number of users: 1
(c) Copyright Research In Motion 2012. All rights reserved.
Visit http://www.rim.com/
Portions copyright:
(c) Copyright Eclipse contributors and others 2000, 2009. All rights reserved.
Visit http://www.eclipse.org/platform
This product includes software developed by the
Apache Software Foundation http://www.apache.org/
--------------
(If I click in "Plug-in Details" then the popupped table is empty)
--------------
****************************************************************************************
****************************************************************************************
3) Did this plugin install OK on previous releases of MyEclipse ?
****************************************************************************************
****************************************************************************************
I don't know.
****************************************************************************************
****************************************************************************************
4) When exactly do you see the error?
Please share the details of what exactly you were doing at the time of occurrence of the error.
List out the steps in detail to help us replicate the issue at our end.
****************************************************************************************
****************************************************************************************
Yesterday I saw this error when I clicked on "Run as..." -> BalckBerry Simulator.
It was on the BlackBerry's output console.
Now, I changed the plug-in version back to 5.0 and I using google's ZXing (not the one in the BB OS 6.0)
Now I see this error in the MyEclipse editor, the letter "p" is underlined in red in the first "package" word in my source file,
and it says :
Multiple markers at this line
- The type java.lang.Enum cannot be resolved. It is indirectly referenced from
required .class files
- The type java.lang.Enum cannot be resolved. It is indirectly referenced from
required .class files
I checked, the "java.lang.Enum" is missing from the "net_rim_api.jar" lib (it is the "JRE System library [BlackBerry JRE 5.0.0] of my project)
I reinstalled the plug-in many times.
I tried to add an other jre (ver 7) too (together with bb's jre) -> doesn't work.
How it is possible, and what can I do?
Thank you!
FLfenyoapa - Jun 20, 2012 - 10:28 AM Post subject:
I got an e-mail :
Hello,
You are receiving this email because you are watching the topic, "BlackBerry plugin 6.0 NoClassDefFoundError: java.lang.Enum" at MyEclipse. This topic has received a reply since your last visit. You can use the following link to view the replies made, no more notifications will be sent until you visit the topic.
BUT WHEN I CLICK IT WRITES:
The topic or post you requested does not exist
Ml, FLsupport-tony - Jun 20, 2012 - 01:06 PM Post subject:
fenyoapa,
Unfortunately, we added a post to the topic by mistake, then deleted it. That is why you got a notification with an invalid link.
I tried to replicate your BlackBerry problem but couldn't. I installed the plug-in and SDK 6 to MyEclipse 10.5 on Windows 7. Then I created a new BlackBerry project and ran it on the simulator. I saw no problems. I even added a line of code to reference the com.google.zxing.BarcodeFormat class but had no problems there, either.
In your Java build path, do you have "JRE System Library [BlackBerry JRE 6.0.0]"? The only other place I could see the SDK level mentioned is under Window->Preferences->BlackBerry Java Plug-in->Preprocessor Directives, where the BlackBerrySDK6.0.0 directive is selected, though it doesn't appear to be editable.
Your problem seems to be the use of the Enum class somewhere in your code. From your initial error, it looks as though the BarcodeFormat class uses enums. However, in searching for the BarcodeFormat class, I discovered that only the most recent version of that class uses enums. So I think that you may have a mixture of different versions of the SDK in your build path, rather than just one. Can you please check that?
You said that you can get this working on eclipse. Is it the same project that is causing the problem on MyEclipse? If so are there any differences between the build path on eclipse and MyEclipse?
If you still see the problem, can you attach a simple BlackBerry project (zipped) that shows the problem, so we can try to replicate the error here?