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?