ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conelly, Luis (GE Energy, Non GE, GENE)" <>
Subject RE: UnsupportedClassVersionError
Date Wed, 01 Jun 2005 14:10:46 GMT

	I have seen this error when you have different versions of ant in
your path/classpath (I´ve seen this happenning on linux workstations with
ant preinstalled). I'd do the following things, to track down the possible

- Unset $CLASSPATH variable
- Set $PATH variable with $JAVA_HOME/bin and $ANT_HOME/bin at the begining
of the variable
- Type on your command prompt the following:
  $ ant -version

If the version corresponds to the ant you think you are using, try again
your build. If not, it is possible your system is forcing you to use the
preinstalled version of ant.

At this point, I do not recall how to fix this, but I believe this has been
discussed previously in this same list. You might want to check the archives

Hope this helps

>-----Original Message-----
>From: Govardhan Babu []
>Sent: Wednesday, June 01, 2005 8:37 AM
>Subject: UnsupportedClassVersionError
>I am getting this 'UnsupportedClassVersionError' when trying to run
>'ant compile' command. For this compile task, the build.xml 
>file contains:
><target name="compile">
><mkdir dir="build/classes"/>
><javac srcdir="src" destdir="build/classes"/>
>'scr' directory having small 
>Initially I thought the problem is because of PATH settings to various
>versiond of JRE, so I checked that and its fine. When am trying to
>compile & run that with javac & java its working fine.
>I am getting error only with 'ant compile' command. 
>I am pretty new to this ANT. Please give me any suggestions or 
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message