Re: Unsupported major.minor version 49.0?

From: Ulrich Köster (ulric..bjectstyle.org)
Date: Thu Jul 06 2006 - 04:40:17 EDT

  • Next message: Anjo Krank: "Re: Unsupported major.minor version 49.0?"

    Moin Marc,

    adjust your build.properties:

    #compile options
    build.compiler = javac1.4

    compile.deprecation = on
    compile.debug = on
    compile.optimize = off

    compile.source = 1.4
    compile.target = 1.4

    Now you shold be able to build for 1.4 under 1.5.

    Uli

    Am 06.07.2006 um 05:22 schrieb Anjo Krank:

    > To make this work a little bit more reliably, you could switch the
    > symlink in /System/Library/Frameworks/JavaVM.framework back to 1.4,
    > then open the Eclipse app wrapper and change the Info.plist to use
    > 1.5.
    >
    > This has been a major pain in the course I gave and this was the
    > "solution" we found works best. And I found that this doesn't work
    > in the shell, but it does in Eclipse:
    >
    > bigbook:~ ak$ javac -source 1.5 -target 1.4
    > javac: source release 1.5 requires target release 1.5
    >
    > Cheers, Anjo
    >
    > Am 06.07.2006 um 02:55 schrieb Marc Respass:
    >
    >> Hi all,
    >>
    >> Is there some Java 5 requirement going on? My server is running
    >> Mac OS X 10.4.x and Java 1.4.2_09. I copied up the latest
    >> woproject.jar and now when I compile I get the following error
    >>
    >> java.lang.UnsupportedClassVersionError: gov/maine/oit/mfasis/wo/
    >> Application (Unsupported major.minor version 49.0)
    >>
    >> I modified ant to use Java 5 and it compiled fine but now my app
    >> does run (same error) because I'm using Java 1.4
    >>
    >> Since WebObjects does no support Java 5, I am sticking with 1.4
    >> for deployment. My workstation runs Java 5 but Eclipse compiles
    >> using 1.4.
    >>
    >> Marc
    >



    This archive was generated by hypermail 2.0.0 : Thu Jul 06 2006 - 04:40:21 EDT