Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid class file error when trying to package Blackberry app

I am facing a problem with blackberry packaging, here is the error info

C:\Users\Simon\AppData\Local\Temp\rapc_0c000678.dir\com\test\bbapp\Api$1.class: Error!: Invalid class file: Incorrect classfile version bb line 0 BlackBerry Packaging Problem

I am new to blackberry programming, but I am familiar with android and windows phone. I tried running a sample blackberry app, it can be packaged successfully.

I am using eclipse and blackberry plug-in.

Any help will be appreciated.

like image 337
Simon Avatar asked Feb 16 '12 22:02

Simon


2 Answers

Did you set proper compliance level?

Invalid class file: Incorrect classfile version

Relates to your compiler version is not supported. See this link from BB Support forums may help you.

like image 87
kosa Avatar answered Sep 29 '22 23:09

kosa


  1. Right click project in Eclipse
  2. Choose properties
  3. Select Java compiler
  4. Check "Enable project specific settings"
  5. Change java version on dropdown (try them all if you need)
  6. Click "Apply" button
  7. Click "Ok" button

If it doesn't work in first trial, just repeat steps with different version in step 5

like image 34
Ashraf Bashir Avatar answered Sep 29 '22 23:09

Ashraf Bashir