Apple Java for OS X 10.5
Updates Java Web Start & Java Applet components.
Version: Update 5
WARNING: Do NOT Modify Your System!
Feedback Type: Review
Contributed by: amcgee Thursday, November 17 2005 @ 05:41 PM PST
Product Platform: MacOSX
Used Product For: Over One Year
Recommend Product: YES
Several people on VT and in other forums have given a list of instructions on how to modify your system so that Java 1.5 (5.0) is the default under OS X. Unfortunately, they forgot to warn you that making such a modification to your system is considered to be a hack by Apple, and while it may appear to work OK now, it can possibly cause serious problems with future system upgrades.
In order to SAFELY make Java 1.5 the default, you should NOT, I repeat, NOT delete or change any system files or symbolic links, but instead use the NON-DESTRUCTIVE methods of:
(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}"
Now when you type "java -version" at a command prompt, you will get 1.5 as the default, and it will apply in all your terminal sesssions.
(2) For web applications and Java apps that need the VM, use this program to change the default VM that gets used:
'/Applications/Utilities/Java/J2SE 5.0/Java Preferences.app'
Move 1.5 to the top of the listing above 1.4, and it will become the preferred VM. It's just that simple.
Those are the ONLY two things you should do to make 1.5 the default. All other methods that involve deleting files, changing symlinks, etc., are dangerous and should be avoided.
More info about this can be found on MacOSXHints:
http://forums.macosxhints.com/showthread.php?t=47531
In order to SAFELY make Java 1.5 the default, you should NOT, I repeat, NOT delete or change any system files or symbolic links, but instead use the NON-DESTRUCTIVE methods of:
(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}"
Now when you type "java -version" at a command prompt, you will get 1.5 as the default, and it will apply in all your terminal sesssions.
(2) For web applications and Java apps that need the VM, use this program to change the default VM that gets used:
'/Applications/Utilities/Java/J2SE 5.0/Java Preferences.app'
Move 1.5 to the top of the listing above 1.4, and it will become the preferred VM. It's just that simple.
Those are the ONLY two things you should do to make 1.5 the default. All other methods that involve deleting files, changing symlinks, etc., are dangerous and should be avoided.
More info about this can be found on MacOSXHints:
http://forums.macosxhints.com/showthread.php?t=47531
Overall Rating:
Ease of Use:
Support:
Features:
Quality / Stability:
Price:
Comments
WARNING: Do NOT Modify Your System! - amcgee
For people who know absolutely nothing about UNIX, you most likely have little use for this version of Java in the first place. Why are you trying to install it? Most of the people who have a need to make it the default are developers and users of very advanced applications. The average person can simply install it and then leave it alone. Only special applications that need version 1.5 will make use of it, and that's not something you need to even concern yourself with.Saturday, November 19 2005 @ 07:58 PM PST
WARNING: Do NOT Modify Your System! - griff--2008
Why would I NOT want to update an essential resource such as Java? As I understand it, Java is necessary if you want to visit most Web sites. So if Apple releases an update for it, I would assume it is for Mac users to download and install so their web browsing will be up-to-date. If we need to also resort to DOS-like application of commands to make it work, I guess I will just have to wait on the sidelines until an easier way to update these resources comes along. I just checked and nowhere does it say that this version of Java is ONLY for advanced UNIX technicians and that ordinary users need not apply. After all, I sense there are plenty of Mac users like myself who actually use their machines for (gasp!) business rather than as a technician's tool.Monday, November 21 2005 @ 08:05 AM PST
WARNING: Do NOT Modify Your System! - amcgee
As I already explained, anyone can install 1.5, and there's no problem with that. When you do, 1.4.2 will remain the default, and through the Java Preferences application, you can make some LIMITED changes so that 1.5 will be used with SOME apps. Going beyond that and making even more changes, or altering your system in any sort of permanent manner is only for ADVANCED users, period. It's not documented because Apple doesn't want you to do it. Just because something can be done doesn't mean that it's something that everytone should do. If you don't grasp my original post, then LEAVE IT ALONE. It wasn't intended for you in the first place.Monday, November 21 2005 @ 04:50 PM PST
WARNING: Do NOT Modify Your System! - griff--2008
Why would I NOT want to update an essential resource such as Java? As I understand it, Java is necessary if you want to visit most Web sites. So if Apple releases an update for it, I would assume it is for Mac users to download and install so their web browsing will be up-to-date. If we need to also resort to DOS-like application of commands to make it work, I guess I will just have to wait on the sidelines until an easier way to update these resources comes along. I just checked and nowhere does it say that this version of Java is ONLY for advanced UNIX technicians and that ordinary users need not apply. After all, I sense there are plenty of Mac users like myself who actually use their machines for (gasp!) Work rather than as a technician's tool.Monday, November 21 2005 @ 08:06 AM PST
WARNING: Do NOT Modify Your System! - griff--2008
Why would I NOT want to update an essential resource such as Java? As I understand it, Java is necessary if you want to visit most Web sites. So if Apple releases an update for it, I would assume it is for Mac users to download and install so their web browsing will be up-to-date. If we need to also resort to DOS-like application of commands to make it work, I guess I will just have to wait on the sidelines until an easier way to update these resources comes along. I just checked and nowhere does it say that this version of Java is ONLY for advanced UNIX technicians and that ordinary users need not apply. After all, I sense there are plenty of Mac users like myself who actually use their machines for (gasp!) Work rather than as a technician's tool.Monday, November 21 2005 @ 08:07 AM PST
WARNING: Do NOT Modify Your System! - McCoder
If I follow your suggestions, I can use eclipse to compile Java 1.5, but the eclipse itsself runs in 1.4 environment.Please give me the correct way to change this.
Monday, November 21 2005 @ 05:59 AM PST
WARNING: Do NOT Modify Your System! - amcgee
Go read the MacOSXHints entry for more details on what to try.Monday, November 21 2005 @ 04:54 PM PST
WARNING: Do NOT Modify Your System! - McCoder
The apple hints don't work for eclipse and all other apps which don't use startup.jar (Apple Javalauncher).So how can I start these Programms without modifying the system? (OK all tips are only for advanced users, all others needn't these new features/speed using eclipse)
Greeting McCoder
Monday, November 21 2005 @ 11:53 PM PST
WARNING: Do NOT Modify Your System! - Michael_Miller_800
Open the jar within the Eclipse package from the command line, then it will use 1.5BTW, this shouldn't matter since Eclipse knows to use the 1.5 for 1.5 apps.
Tuesday, April 18 2006 @ 03:22 PM PDT
WARNING: Do NOT Modify Your System! - griff--2008
For someone like me who knows absolutely nothing about UNIX, these kind of instructions are rather meaningless. So, unless and until someone produces a UI application that will perform these instructions by clicking buttons and check squares, I and people like me who pay the same amount of money for Apple machines and software to run them, are out in the cold.I open Terminal and type the commands as you have listed them, and Terminal returns "Command not found." It doesn't know any of these commands (such as the command "execute.")
So, what next? Perhaps you should tell us what command you can give that will reveal the ".profile" or the "bash_profile" because I really can't get them to show up in Terminal using what little info I have picked up about UNIX.
And another thing (and this is in no way critical of the knowledgable developers among us), I bought this machine for helping in my business and to have fun along the way. If I have buy and read yet another text book and perform complicated hacks to get my machine to perform in an optimum way, then to heck with it! I am going to list this idiot box on eBay and find other ways of accomplishing my tasks. I long for the good old days of Mac OS 1 through 9.
Griff
Reply to This
Saturday, November 19 2005 @ 11:47 AM PST