According to the update text on the latest Java VM update for OS X:

"This release includes J2SE version 1.5.0_06. With this update J2SE 5.0 becomes the preferred Java version, superseding Java 1.4.2. Java 1.4.2 is still installed on your machine, but applications will run with J2SE 5.0 unless they specifically request Java 1.4.2."

Which means they changed the CurrentJDK symlink which is what /usr/ bin/java and others point to. So, just update that to point to 1.4 again and you'll be fine.

If you haven't yet done so, this script will work:

#!/bin/bash
function defaultjdk {
    local vmdir=/System/Library/Frameworks/JavaVM.framework/Versions
    local ver=${1?Usage: defaultjdk <version>}

    [ -z "$2" ] || error="Too many arguments"
    [ -d $vmdir/$ver ] || error="Unknown JDK version: $ver"
[ "$(readlink $vmdir/CurrentJDK)" != "$ver" ] || error="JDK already set to $ver"


    if [ -n "$error" ]; then
        echo $error
        return 1
    fi

    echo -n "Setting default JDK & HotSpot to $ver ... "

    if [ "$(/usr/bin/id -u)" != "0" ]; then
        SUDO=sudo
    fi

$SUDO /bin/rm /System/Library/Frameworks/JavaVM.framework/ Versions/CurrentJDK $SUDO /bin/ln -s $ver /System/Library/Frameworks/ JavaVM.framework/Versions/CurrentJDK

    echo Done.
}

defaultjdk 1.4



-David



On Apr 19, 2006, at 10:26 PM, Bruce Snyder wrote:

On 4/19/06, Jeff Genender <[EMAIL PROTECTED]> wrote:
Yes...and before anyone asks...

The JVM/JAVA_HOME/PATh was set to the 1.4 JVM.  The OS seems to get
mixed up about the path libs.

You beat me to it ;-).

Is there any way that we can massage the CLASSPATH as a temporary workaround?

Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\! G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://incubator.apache.org/activemq/
Apache ServiceMix - http://incubator.apache.org/servicemix/
Castor - http://castor.org/


Reply via email to