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: downgrading from 1.5 to 1.4




On Apr 4, 2007, at 11:48 AM, Nima Tiran wrote:

Hi all,

I searched the archives to find out how I can degrade java from
version 1.5 to 1.4, I tried with Java Preferences in J2SE located in
"Java/Utilities" but as I changed to 1.4 and check the java version on
terminal,I see it shows the same version (1.5) again.

MacPro:~ shawnce$ which java /usr/bin/java

MacPro:~ shawnce$ ls -l /usr/bin/java
lrwxr-xr-x 1 root wheel 77 Feb 20 08:25 /usr/bin/java -> /System/ Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Commands/java


MacPro:~ shawnce$ ls -l /System/Library/Frameworks/JavaVM.framework/ Versions/CurrentJDK
lrwxr-xr-x 1 root wheel 3 Feb 20 08:25 /System/Library/Frameworks/ JavaVM.framework/Versions/CurrentJDK -> 1.5


MacPro:~ shawnce$ ls -l /System/Library/Frameworks/JavaVM.framework/ Versions/
total 40
lrwxr-xr-x 1 root wheel 5 Feb 20 08:25 1.3 -> 1.3.1
drwxr-xr-x 8 root wheel 272 Oct 28 07:17 1.3.1
lrwxr-xr-x 1 root wheel 5 Feb 20 08:25 1.4 -> 1.4.2
drwxr-xr-x 8 root wheel 272 Oct 28 07:17 1.4.2
lrwxr-xr-x 1 root wheel 5 Feb 20 08:25 1.5 -> 1.5.0
drwxr-xr-x 8 root wheel 272 Oct 28 07:17 1.5.0
drwxr-xr-x 5 root wheel 170 Feb 20 08:26 A
lrwxr-xr-x 1 root wheel 1 Feb 20 08:25 Current -> A
lrwxr-xr-x 1 root wheel 3 Feb 20 08:25 CurrentJDK -> 1.5


So one way to get what you want from the command line without a lot of typing is the following (much like you would do on other Unix systems)...

MacPro:~ shawnce$ alias java14=/System/Library/Frameworks/ JavaVM.framework/Versions/1.4/Commands/java

MacPro:~ shawnce$ java14 -version
java version "1.4.2_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_12-269)
Java HotSpot(TM) Client VM (build 1.4.2-76, mixed mode)

MacPro:~ shawnce$ alias java13=/System/Library/Frameworks/ JavaVM.framework/Versions/1.3/Commands/java

MacPro:~ shawnce$ java13 -version
java version "1.3.1_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_16- root_1.3.1_060701-19:09)
Java HotSpot(TM) Client VM (build 1.3.1_09-86, interpreted mode)


MacPro:~ shawnce$ alias java15=/System/Library/Frameworks/ JavaVM.framework/Versions/1.5/Commands/java

MacPro:~ shawnce$ java15 -version
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode)

-Shawn
_______________________________________________
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: 
 >downgrading from 1.5 to 1.4 (From: "Nima Tiran" <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.