Re: Java Version change?

From: Mike Schrag (mschra..dimension.com)
Date: Sat Mar 31 2007 - 08:31:30 EDT

  • Next message: Mike Schrag: "Re: Java Version change?"

    You can still use javac1.4 in your ant build, though. All that is
    changing here is that ant itself is running in 1.5.

    ms

    On Mar 31, 2007, at 8:26 AM, Mike Kienenberger wrote:

    > So we can rule out accident at this point :-)
    >
    > Be aware that running Java 1.5 with a source/target of 1.4 will not
    > necessarily produce 1.4-compatible code.
    >
    > You will still be able to use Java 1.5 class methods, like
    > String.contains(String), that will not be available in the 1.4 class
    > libraries. If you've gotten used to using autocomplete, you'll
    > probably start using some of these without realizing it.
    >
    > I think this will do it, but I haven't played around with it myself (I
    > find it easier to just compile using 1.4).
    >
    > javac -source 1.4 -target 1.4 -bootclasspath /path/to/jre1.4/lib/
    > rt.jar
    >
    >
    > On 3/31/07, Mike Schrag <mschra..dimension.com> wrote:
    >> Just really bad timing for you :) I forgot about this little side-
    >> effect
    >> ... Last night I switched WOLips to build with 1.5. This means
    >> that the ant
    >> tasks are also built with 1.5, which means that you need to be
    >> BUILDING with
    >> 1.5. It does not mean your app needs to BE 1.5, just that you
    >> need to run
    >> ant with 1.5. You can run ant with javac1.4 and source/target 1.4
    >> if you
    >> want.
    >>
    >> ms
    >>
    >>
    >> On Mar 30, 2007, at 10:17 PM, Kieran Kelleher wrote:
    >> Man, this evening's adventures in programming are not going well.
    >>
    >> OK, just updated to latest WOLips a few minutes ago and now I get
    >> following
    >> when trying to build ..... I guess we all need to switch to Java
    >> 1.5 now?
    >>
    >> Buildfile:
    >> /Users/kieran/DevProjects/eclipseworkspace/Omega/build.xml
    >> setProps:
    >> init.build:
    >> build.woapp:
    >>
    >> BUILD FAILED
    >> java.lang.UnsupportedClassVersionError:
    >> org/objectstyle/woproject/ant/WOApplication (Unsupported
    >> major.minor version 49.0)
    >>
    >> Total time: 592 milliseconds
    >>



    This archive was generated by hypermail 2.0.0 : Sat Mar 31 2007 - 08:31:53 EDT