Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 142
Registered: ‎06-26-2009
My Device: Not Specified

Incorrect class file error in BB IDE while build


Hi Forum Friends,

 

I have created a project of type library which has number of jar files and I have made by project dependant  on that library.

 

I am using BB IDE 4.5 and I have installed Java version 1.6.0_13 on my desktop.

 

However, when I try to compile the project it gives me following error -

 

com/myspace/myspaceid/InternalPartnerContext.class: Error!: Invalid class file: Incorrect classfile version

 

How to check which version of java the IDE is using or how to set the compiler compliance level ?

 

Please help me with this.

 

Thanks and Rgds.

 

Highlighted
Visitor
Posts: 1
Registered: ‎02-20-2010
My Device: bold
My Carrier: dev

Re: Incorrect class file error in BB IDE while build

set java compiler-level to 1.4

New Member
Posts: 1
Registered: ‎11-09-2008
My Device: Not Specified

Re: Incorrect class file error in BB IDE while build

Thanks for this post, was bugging me for quite awhile until I came across this!

Super Contributor
Posts: 306
Registered: ‎08-10-2010
My Device: Not Specified

Re: Incorrect class file error in BB IDE while build

i got the same error when i import the pushsdk demo project in my eclipse.

i set the complier version 1.4 then also it display the same error so anyone have any idea

 

i am using

Eclipse Helios.

JRE 1.6

 

 

 

thanks .

Contributor
Posts: 28
Registered: ‎06-21-2011
My Device: Torch 9800
My Carrier: Vodafone Egypt

Re: Incorrect class file error in BB IDE while build

A quick howto? Please? I'm a Java noob Smiley Happy
Developer
Posts: 102
Registered: ‎07-26-2011
My Device: Not a blackberry user
My Carrier: None

Re: Incorrect class file error in BB IDE while build

Thanks Muku.

I really forgot about the compliance!

Let me know if this was helpful or if you have a solution.

Johan Guzmán - In case my answer pleased you, give a press to the LIKE button, please!! Mark this post as solution if it solved your problem.