Invalid class file error while trying Blackberry batch application

I have a problem with packing a blackberry, here is the error information

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

I'm new to BlackBerry programming, but I am familiar with Android and Windows phones. I tried to run a sample Blackberry application, it can be successfully packaged.

I am using the eclipse and blackberry plugin.

Any help would be appreciated.

+6
source share
3 answers

Have you set the appropriate level of compliance?

Invalid class file: Incorrect classfile version 

Applies to your version of the compiler is not supported. See this link from BB support forums can help you.

+4
source
  • Right Click Project in Eclipse
  • Select properties
  • Choose a Java compiler
  • Check the box next to "Enable custom project settings."
  • Change the java version on the drop down list (try everything if you need)
  • Click "Apply"
  • Click OK

If it does not work in the first test, just repeat the steps with a different version in step 5

+4
source

You should view your project settings in Eclipse. Make sure you are using the correct version of Blackberry JDE in the build path

+1
source

Source: https://habr.com/ru/post/908667/


All Articles