Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Can't get tomcat to use Java 5

Can't get tomcat to use Java 5
Thread Tools
Xeo
Moderator Emeritus
Join Date: Mar 2001
Location: Austin, MN, USA
Status: Offline
Reply With Quote
May 3, 2005, 08:06 PM
 
Using OS X 10.4 and installed Java 5 via Apple's website.

I previously had installed Tomcat (jakarta-tomcat-5.5.9) with the compatibility package to run under JRE 1.4.2. Well, I just installed Java 5 and re-downloaded jakarta-tomcat-5.5.9.tar.gz, did not install the compatibility package, started it up, and it runs. Since 5.5.9 is JRE 5 or above only and it's running, I assume tomcat was started using the new Java. But I don't know how to explicitly check.

However, in my .jsp files, when I use the new foreach construct [for(String s: strings)] or generics [Vector<String> v;], I get parse errors which leads me to believe it is using JRE 1.4.2 still.

I've changed the symbolic link in /System/Library/Frameworks/JavaVM.framework/Versions and can use java/javac to compile .java files with those syntax changes.

Any ideas?
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:28 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2