You could also add a line setting JAVA_HOME in your maven startup script,
right? I believe this is what I have done,
-Patricia
At 01:27 PM 4/26/2006, Steven Githens wrote:
I had this very problem this morning, and found the following shell script
on some website and ran it with:
sh ./setJDK.sh 1.4.2
~steve
#!/bin/sh
cd /System/Library/Frameworks/JavaVM.framework/Versions
CURJDK="`readlink CurrentJDK`"
echo Current JDK version: $CURJDK
if [ "$1" == "" ]; then
echo Installed versions:
ls
exit
fi
VERFOUND=`ls | grep $1 | head -n 1`
if [ "$VERFOUND" != "$1" ]; then
BASE="`basename $0`"
echo Error: Could not change JDK-- version $1 not installed!
echo Run $BASE without arguments to see a list of installed versions.
exit 127
fi
echo You must now enter your Mac OS X password to change the JDK.
sudo ln -fhsv $1 CurrentJDK
Zach A. Thomas wrote:
I went ahead and ran the OS X update to get Java 5 as the default. I was
worried that it would cause problems (our production servers still run
JVM 1.4.2) and it has.
I updated my build.properties with maven.compile.source=1.4 and
maven.compile.target=1.4, I set JAVA_HOME so it points to my older Java
installation, and I even replaced the sym link for /usr/bin/javac.
When I do a build on my machine it runs fine, but when I copy it up to
one of our app servers, I get a wide variety of "Unsupported major.minor
version 49.0" errors on a lot of classes, particularly every time a tool
tries to load in an iframe.
What have I overlooked? Is there a way to verify after the fact that my
object files were indeed produced by the 1.4.2 compiler?
regards,
Zach A. Thomas
Software Engineer
Texas State University
http://www.txstate.edu
----------------------
This automatic notification message was sent by Sakai Collab
(http://collab.sakaiproject.org/portal) from the DG: Development site.
You can modify how you receive notifications at My Workspace > Preferences.
----------------------
This automatic notification message was sent by Sakai Collab
(http://collab.sakaiproject.org/portal) from the DG: Development site.
You can modify how you receive notifications at My Workspace > Preferences.
Patricia Goldweic
pgoldweic@xxxxxxxxxxxxxxxx
----------------------
This automatic notification message was sent by Sakai Collab
(
http://collab.sakaiproject.org/portal) from the DG: Development site.
You can modify how you receive notifications at My Workspace > Preferences.