Invalid class file error when trying to package Blackberry app
Asked Answered
D

3

6

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.

Disarming answered 16/2, 2012 at 22:33 Comment(0)
L
4

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.

Lavadalavage answered 16/2, 2012 at 22:37 Comment(0)
T
4
  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

Tumbrel answered 27/8, 2012 at 9:22 Comment(0)
K
1

You should review your project settings in Eclipse. Verify that you're using the correct Blackberry JDE version in the Build Path

Kapok answered 17/2, 2012 at 3:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.