Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Re: Java 7 incompatibility?

Donald McLean

2012-01-10

Replies: Find Java Web Hosting

Author LoginPost Reply
The most likely cause is a classpath problem.

Is the environment still pointing to Java6 jar files?

Try enabling verbose output and see what you get.

Donald

On 1/10/12 10:12 AM, Dan Checkoway wrote:
> With Java 6 all is well...
>
> $ java -version
> java version "1.6.0_26"
> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
> Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
>
> $ ant -version
> Apache Ant version 1.6.5 compiled on January 6 2007
>
> ...but once I upgrade to Java 7:
>
> $ java -version
> java version "1.7.0_02"
> Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
> Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)
>
> $ ant -version
> Error: Could not find or load main class
> org.apache.tools.ant.launch.Launcher
>
> Any advice?
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.