Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > Java deactivation problem

Java deactivation problem
Thread Tools
gbhgbh
Dedicated MacNNer
Join Date: Jan 2002
Location: Washington DC
Status: Offline
Reply With Quote
Apr 26, 2005, 11:32 PM
 
Somehow Java got deactivated from my system and I'm trying to figure out what I need to do to reinstall or reactivate it. When I run the command "java -version" in the terminal, I get;
-bash: java: command not found

I tried to install the Java142Update2.dmg from Apple's website (the 26MB file), but the installer would not let me install the package. It gave this message;
"This volume does not contain a version of Java that needs updating".

Here are the Java receipts listed in /Library/Receipts;
Java.pkg
Java1.4.1.pkg
Java141Update1.pkg
Java142.pkg
Java142DevDocumentation.pkg
Java142DevTools.pkg
Java142Update1.pkg
Java142Update1DevDocumentation.pkg
Java142Update1DevTools.pkg
Java142Update2.pkg

I'm running MacOS 10.3.9
What needs to be done to get Java running again?
     
Ganesha
Senior User
Join Date: Jul 2002
Location: Arizona Wasteland
Status: Offline
Reply With Quote
Apr 26, 2005, 11:47 PM
 
What does it say when you try to run:
/System/Library/Frameworks/JavaVM.framework/Commands/java -version
     
gbhgbh  (op)
Dedicated MacNNer
Join Date: Jan 2002
Location: Washington DC
Status: Offline
Reply With Quote
Apr 27, 2005, 12:28 AM
 
Originally Posted by Ganesha
What does it say when you try to run:
/System/Library/Frameworks/JavaVM.framework/Commands/java -version
It says essentially the same thing;
-bash: /System/Library/Frameworks/JavaVM.framework/Commands/java: No such file or directory
     
gbhgbh  (op)
Dedicated MacNNer
Join Date: Jan 2002
Location: Washington DC
Status: Offline
Reply With Quote
Apr 27, 2005, 12:56 AM
 
Originally Posted by gbhgbh
It says essentially the same thing;
-bash: /System/Library/Frameworks/JavaVM.framework/Commands/java: No such file or directory
However upon looking into this further, I think you've found the problem. When I run the command "ls -l /System/Library/Frameworks/JavaVM.framework/Commands" I get (among others);
lrwxr-xr-x 1 root wheel 28 25 Feb 17:09 Commands@ -> Versions/CurrentJDK/Commands

And when I run the command "ls -l /System/Library/Frameworks/JavaVM.framework/Versions" I get;
drwxr-xr-x 3 root wheel 102 30 Aug 2004 1.2/
drwxr-xr-x 3 root wheel 102 30 Aug 2004 1.3/
drwxr-xr-x 7 root wheel 238 24 Sep 2003 1.3.1/
drwxr-xr-x 8 root wheel 272 26 Jan 15:22 1.4.2/
drwxr-xr-x 5 root wheel 170 22 Apr 03:57 A/
lrwxr-xr-x 1 root wheel 1 25 Feb 17:10 Current@ -> A
lrwxr-xr-x 1 root wheel 5 25 Feb 17:10 CurrentJDK@ -> 1.4.1

I guess the problem is that the directory CurrentJDK is linked to 1.4.1 (which doesn't exist) instead of to 1.4.2. It seems the simple solution would be to run the commands
"sudo rm /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK"
and
"sudo ln -s /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2 /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK".

But I'm wondering if there are links anywhere else that are broken. It seems like I need to update this from 1.4.1 to 1.4.2 again. However as I said in the first post, the 1.4.2Update2 package would not let install again. Any advice on how to proceed from here?
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 10:00 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,