Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

installing Java 5.0 on OS X Tiger

Thread view: 
spwpreston@gmail.com - 16 Nov 2005 02:08 GMT
Hello All,

I recently upgraded to OS X 10.4.3, then 'tried' upgrading to Java
5.0(1.5). When I type "java -version" at the Terminal prompt, it tells
me I am still running 1.4.2. What is going on? Do I need to fiddle with
the location of this new Java version?

 thank you much.
 S. Borg
Mickey Segal - 16 Nov 2005 02:59 GMT
> I recently upgraded to OS X 10.4.3, then 'tried' upgrading to Java
> 5.0(1.5). When I type "java -version" at the Terminal prompt, it tells
> me I am still running 1.4.2. What is going on? Do I need to fiddle with
> the location of this new Java version?

Java 1.4 remains on your computer in addition to 1.5.  You can set which of
the two is active using the Java Preferences utility.
Googmeister - 16 Nov 2005 12:09 GMT
> > I recently upgraded to OS X 10.4.3, then 'tried' upgrading to Java
> > 5.0(1.5). When I type "java -version" at the Terminal prompt, it tells
[quoted text clipped - 3 lines]
> Java 1.4 remains on your computer in addition to 1.5.  You can set which of
> the two is active using the Java Preferences utility.

In my experience, this only changes the Java version for
applets, applets, and applications launched from the GUI.
For compiling/executing from the Terminal, I added the
following alias to my .tcshrc file.

alias javac
'/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/javac'
alias java
'/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/java'

If you use the bash shell do the following instead,

alias
javac='/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/javac'
alias
java='/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/java'
Shin - 16 Nov 2005 17:46 GMT
I am getting similar results when using the preference setting tool
under /Application/Utilities/Java/java5.0/

-Shin
Roedy Green - 16 Nov 2005 10:23 GMT
> I recently upgraded to OS X 10.4.3, then 'tried' upgrading to Java
>5.0(1.5). When I type "java -version" at the Terminal prompt, it tells
>me I am still running 1.4.2. What is going on? Do I need to fiddle with
>the location of this new Java version?

I have found unless you uninstall the old version first,  and purge
the registry and files of the old Java, you get cross-errors like
this.  
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Andrew Thompson - 16 Nov 2005 11:31 GMT
>>I recently upgraded to OS X 10.4.3, then 'tried' upgrading to Java
>>5.0(1.5). When I type "java -version" at the Terminal prompt, it tells
[quoted text clipped - 4 lines]
> the registry and files of the old Java, you get cross-errors like
> this.  

Whereas your advice might apply to Windows, I suspect
Mickey identified the problem here.  [ And I would not
recommend to the OP that they attempt to unistall 1.4
from OS X. ]
Steve W. Jackson - 16 Nov 2005 17:06 GMT
> >>I recently upgraded to OS X 10.4.3, then 'tried' upgrading to Java
> >>5.0(1.5). When I type "java -version" at the Terminal prompt, it tells
[quoted text clipped - 9 lines]
> recommend to the OP that they attempt to unistall 1.4
> from OS X. ]

I second Andrew's response.  Mac OS X has no "registry".

I have downloaded, but not yet installed, the new Java 5.0 from Apple.  
In a shell, the "java" and "javac" commands are both located in
/usr/bin, and both are symbolic links to equivalently named files in the
/System/Library/Frameworks/JavaVM.framework/Commands directory.  
Commands, like most of the other items in the JavaVM.framework
directory, is a symbolic link to something else.  It's Apple's
complicated way of switching between "current" versions, by switching
what symbolic links point to.

Once I get around to installing the new release, I'll check to see
what's changed, but I suspect it will change nothing unless I manually
adjust those links (which I'm not likely to attempt) or use the utility
Apple refers to.

= Steve =
Signature

Steve W. Jackson
Montgomery, Alabama

Scott Ellsworth - 16 Nov 2005 23:02 GMT
> Hello All,
>
>  I recently upgraded to OS X 10.4.3, then 'tried' upgrading to Java
> 5.0(1.5). When I type "java -version" at the Terminal prompt, it tells
> me I am still running 1.4.2. What is going on? Do I need to fiddle with
> the location of this new Java version?

I suspect that your install is fine, but that you need to tell your
system to use it.

Apple wants more testing before 1.5 becomes the default.  From where I
sit, it is better than 1.4 for all of my apps, but I am willing to
accept that they have a reasonably good reason for this behavior for
now.  They, after all, are the ones who will be in worlds of hurt if it
works poorly.

To get 1.5 to be the default for the command line, add the following to
your .profile:

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

To get 1.5 to be the default for applets and applications, use the java
preference utility in /Applications/Utilities/Java 1.5

Scott

Signature

Scott Ellsworth
scott@alodar.nospam.com
Java and database consulting for the life sciences



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.