Re: How do I configure it to deploy to JVM 1.4

From: Lachlan Deck (lachlan.dec..mail.com)
Date: Thu Nov 29 2007 - 19:27:31 EST

  • Next message: Pascal Robert: "Java 1.5 and Eclipse"

    On 30/11/2007, at 5:40 AM, Chuck Hill wrote:

    > Trying to follow this, not having much luck. I _think_ what you
    > are doing is running Ant under 1.4.2 which is NOT what you want to
    > do. I think your problem is here:
    >
    >>>>>>>>> When I set the build to use JVM 1.4.2 I get the following
    >>>>>>>>> error:
    >>>>>>>>>
    >>>>>>>>> /Users/jcicenia/Documents/workspace/hb/build.xml:46:
    >>>>>>>>> java.lang.UnsupportedClassVersionError: org/objectstyle/
    >>>>>>>>> woproject/ant/WOApplication (Unsupported major.minor
    >>>>>>>>> version 49.0)
    >
    > You want the build to use (run Ant with) 1.5 as that is what WOLips
    > was built with. YOUR app will be compiled for:
    >
    >>>>>> <javac srcdir="src" destdir="bin" target="1.4" source="1.4"
    >>>>>> debug="true">
    >>>>>>
    >>>>>> or
    >>>>>>
    >>>>>> <wocompile srcdir = "src" destdir = "bin" target="1.4"
    >>>>>> source="1.4" debug="on">
    >
    > Does that help?

    And to make it clearer, maybe... Here's a screenie...

    And you also need to run ant with java 1.5, but ensure that the build
    file (as mentioned before) tells javac to target 1.4 compatibility.
    read 'man javac'

    with regards,

    --
    

    Lachlan Deck




    This archive was generated by hypermail 2.0.0 : Thu Nov 29 2007 - 19:28:49 EST