ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jen <xwhu_1...@yahoo.com>
Subject help -- can't run ant
Date Fri, 29 Aug 2003 00:57:24 GMT
Hi,
I used to have jdk131 and ant runs fine. Then I
uninstall 131 and install 142. But jdk14 is not
supported by weblogic7. So I switch to use the jdk
bunled with bea. But I can' t use ant anymore. What's
the problem?


Apache Ant version 1.5 compiled on July 9 2002
Buildfile: build.xml
Detected Java version: 1.3 in: C:\bea\jdk131_06\jre
Detected OS: Windows 2000

BUILD FAILED
java.lang.UnsupportedClassVersionError:
com/sun/tools/javac/Main (Unsupported ma
jor.minor version 48.0)
        at java.lang.ClassLoader.defineClass0(Native
Method)
        at
java.lang.ClassLoader.defineClass(ClassLoader.java:488)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
6)
        at
java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
        at
java.net.URLClassLoader.access$100(URLClassLoader.java:51)
        at
java.net.URLClassLoader$1.run(URLClassLoader.java:190)
        at
java.security.AccessController.doPrivileged(Native
Method)
        at
java.net.URLClassLoader.findClass(URLClassLoader.java:183)
        at
java.lang.ClassLoader.loadClass(ClassLoader.java:294)
        at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
        at
java.lang.ClassLoader.loadClass(ClassLoader.java:250)
        at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:115)
        at
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.doesMo
dernCompilerExist(CompilerAdapterFactory.java:173)
        at
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCom
piler(CompilerAdapterFactory.java:131)
        at
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:833)
        at
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
        at
org.apache.tools.ant.Task.perform(Task.java:317)
        at
org.apache.tools.ant.Target.execute(Target.java:309)
        at
org.apache.tools.ant.Target.performTasks(Target.java:334)
        at
org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at
org.apache.tools.ant.Main.runBuild(Main.java:610)
        at
org.apache.tools.ant.Main.start(Main.java:196)
        at
org.apache.tools.ant.Main.main(Main.java:235)

Total time: 3 seconds

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message