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.

I need to downgrade it temporary to test something in my app, just
wondering how accomplish this on my machine(MacPro) ?
I thinking to use the "link" command to point to 1.4 from 1.5 but
before that I wanted to make sure what is the best approach for this.

Sorry if the problem sounds basic, I'm new with Java stuff....

To use a different version of Java at the command line, please specify the whole path to the java command, make an alias in your shell, or prepend the full path to the desired Java version in your $PATH.


full path to 1.4 -> /System/Library/Frameworks/JavaVM.framework/ Versions/1.4/Commands/java

or to temporarily change your $PATH

export PATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.4/ Commands:$PATH

We understand that many people expect the version of Java on the command line to change when they use Java Preferences.app, but for right now, you should modify your shell environment to temporarily use Java 1.4.

Cheers,
Mike Swingler
Java Frameworks Engineer
Apple Inc.
_______________________________________________
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.