Is there a way to run gradle with the 1.5 jdk but tell it to compile everything with a specific 1.4 jdk? Even if only the ant task uses 1.4, it should work. It's only the ant task that needs and IBM-specific 1.4 jdk. Thanks
-Jerod On Thu, Jul 10, 2008 at 10:57 AM, Hans Dockter <[EMAIL PROTECTED]> wrote: > Hi Jerod, > > On Jul 10, 2008, at 5:42 PM, JerodLass wrote: > > >> I need to run gradle with a 1.4 jdk, specifically IBM's 1.4 jdk. The >> reason >> for this is that I need to run a websphere EJB deploy ant task to create >> some EJBs and I have found that this is dependent on IBM's was 5.1 jdk, >> which is version 1.4.2. I am on a Windows XP machine, so I have the >> regular >> windows cmd and also cygwin. When I try to use gradle (even gradle -v) in >> cygwin if my JAVA_HOME is set to the 1.4 JDK, I get the error: >> >> The java class could not be loaded. >> java.lang.UnsupportedClassVersionError: >> org/gradle/BootstrapMain (Unsupported major.minor version 49.0) >> >> This happens both with the current snapshot of gradle and the current svn >> version of gradle, even if I build the source with the 1.4 jdk. >> >> In Windows cmd, both the current snapshot and the current svn built with >> 1.4 >> jdk appear to work. I can execute gradle -v and gradle clean runs >> quickly, >> but if I actually try to build something, gradle starts quickly and each >> successive project configuration takes more time until eventually it runs >> out of memory. I've never used gradle in cmd so I guess it doesn't >> surprise >> me that it doesn't work, but how can I get gradle running with IBM's 1.4 >> JDK >> in cygwin? >> >> Any thoughts would be very much appreciated. >> > > As we use Java 5 features, Gradle can't run on a JDK 1.4 right now. There > is a retroweaver project though which makes 1.5 bytecode 1.4 compatible. I > know that the Groovy project is using this. I need to have a look into this > or you might have. I would be cool to have a jdk1.4 compatible Gradle > distribution. > > - Hans > > >> -Jerod >> -- >> View this message in context: http://www.nabble.com/gradle-with- >> a-1.4-jdk-tp18385565p18385565.html >> Sent from the gradle-user mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > -- > Hans Dockter > Gradle Project lead > http://www.gradle.org > > > > > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > >
