Android Tutorial Trial - Version problem?

mdivus

New Member
Hi,

I just dloaded the Trial version today and wanted to start with the hello world sample, but when compiling I get the following error:


javac 1.5.0_22
src\anywheresoftware\b4a\helloworld\main.java:3: cannot access anywheresoftware.b4a.B4AMenuItem
bad class file: D:\AndroidDevelopment\Basic4android\Libraries\B4AShared.jar(anywheresoftware/b4a/B4AMenuItem.class)
class file has wrong version 50.0, should be 49.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import anywheresoftware.b4a.B4AMenuItem;
^
1 error


Any ideas what I'm doing wrong?

Thanks,
Martin
 

Cableguy

Expert
Licensed User
Hi,

I just dloaded the Trial version today and wanted to start with the hello world sample, but when compiling I get the following error:


javac 1.5.0_22
src\anywheresoftware\b4a\helloworld\main.java:3: cannot access anywheresoftware.b4a.B4AMenuItem
bad class file: D:\AndroidDevelopment\Basic4android\Libraries\B4AShared.jar(anywheresoftware/b4a/B4AMenuItem.class)
class file has wrong version 50.0, should be 49.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import anywheresoftware.b4a.B4AMenuItem;
^
1 error


Any ideas what I'm doing wrong?

Thanks,
Martin
Have you donloaded the Sdk's needed to compile apk?? Are the paths to the sdk correctly defined???
 

mdivus

New Member
Got Java 5 installed
and the Android SDK

using the android-8/android.jar

the paths seem to be set correctly
 

mdivus

New Member
Good wild guess, that was the problem, running JDK 6 now and its working

Thanks for the VERY fast help.
 
Top