Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JDK 1.6, Tomcat 6 and Ant



Uff... thanks, that was it.

best,
-Rob



On Aug 25, 2008, at 2:23 PM, Mike Swingler wrote:

On Aug 25, 2008, at 11:03 AM, Robert Koberg wrote:

Hi,

Just changed over from ubuntu to 10.5.4 (2.6 GHz Core 2 Duo) after some time away. I downloaded and installed the latest java 1.6 from the apple dev center. Are there some up to date documents on how to run run java 6 on 10.5.4? (Hopefully something that focuses on Tomcat and/or Ant.)

I need to use 1.6 as that is what the production server is running.

I am having problems using Ant and Tomcat with the proper java version it seems. I have set my java preference from the utilities java app so that:

$ java -version
java version "1.6.0_05"
Java(TM) SE Runtime Environment (build 1.6.0_05-b13-120)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_05-b13-52, mixed mode)


When I run a compile from Ant, I get:
compile:
[javac] Compiling 64 source files to /Users/me/Documents/ workspace/ripple-core/classes
[javac] javac: invalid target release: 1.6


I am also using Eclipse with th JDK set to 1.6 and am able to run my builds without error. However, when I start Tomcat with Eclipse the webapps don't seem to start (can't find where it is logging to...). When I run tomcat started from the command line I get error indicating jdk version mismatch:

SEVERE: Error deploying configuration descriptor ROOT.xml
java.lang.UnsupportedClassVersionError: Bad version number in .class file


Any help or pointers to docs would be very much appreciated. I have been searching for the last few hours and have not found anything that solves my problems.

Prior to invoking ant, you have to set your $JAVA_HOME environment variable to "/System/Library/Frameworks/JavaVM.framework/Versions/ 1.6/Home".


Hope this helps,
Mike Swingler
Java Runtime Engineer
Apple Inc.

_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >JDK 1.6, Tomcat 6 and Ant (From: Robert Koberg <email@hidden>)
 >Re: JDK 1.6, Tomcat 6 and Ant (From: Mike Swingler <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.