Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Need Java 1.5 As Default

How do I make java 1.5 default when compiling java source code in terminal. I need this for my java programming class. Thank you.

Posted on Nov 2, 2005 11:15 PM

Reply
4 replies

Dec 8, 2005 4:05 AM in response to Rawn027

Dear Friends,
I got the same problem and find as shown below, from VersioTracker the coments to change and get the 1.5 as default. But, how to do it? I cann't finde the .profile ou even the .bash_profile. I've tried by the Java Preference but it didn't work!!!!
Thanks a lot!!!!!

(1) Modifying your system environment variables for Java, so that the 1.5 command-line tools and applications are found first. You do this by modifying your .profile or .bash_profile and adding these two lines:

export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home"
export PATH="${JAVA_HOME}/bin:${PATH}"

Need Java 1.5 As Default

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.