Menu

Bad class file

Help
bethran
2005-12-21
2013-04-25
  • bethran

    bethran - 2005-12-21

    I've just downloaded the latest roxes-win32 build (1.0.2). 
    When I attempt to compile Java source with an "import com.roxes.win32.LnkFile" statement, I receive a compile time error:
    "bad class file: <path_to_jar>\roxes-win32forjava-1.0.2.jar(com/roxes/win32/LnkFile.class)
    class file has wrong version 49.0, should be 48.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import com.roxes.win32.LnkFile;"

    Any suggestions?

    B.

     
    • Arne Plöse

      Arne Plöse - 2005-12-22

      I compiled the whole stuff with JDK 1.5 aka 5.0 (Tiger) so if you want to use them as is, you need the JDK 1.5 ...
      Alternatively you should be able to roll your own jars and set the compatibility to 1.4 <javac source="1.4" ...
      If you encounter any problems please let me know.

      I don't know if you consider this as an bug (usage of JDK 1.5) if yes, please file a bug against it.

      Maybe I should make it clear that 1.5 was used.

      Arne Plöse

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.