Android Tutorial Trial - Version problem?

Discussion in 'Tutorials & Examples' started by mdivus, Feb 17, 2011.

  1. mdivus

    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
     
  2. Cableguy

    Cableguy Expert Licensed User

    Have you donloaded the Sdk's needed to compile apk?? Are the paths to the sdk correctly defined???
     
  3. mdivus

    mdivus New Member

    Got Java 5 installed
    and the Android SDK

    using the android-8/android.jar

    the paths seem to be set correctly
     
  4. agraham

    agraham Expert Licensed User

    It's a guess because I not really au fait with the Java SDK but I believe that Basic4android is compiled with Java 6 so maybe it's incompatible with Java 5.
     
  5. mdivus

    mdivus New Member

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

    Thanks for the VERY fast help.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice