Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.3: Repair Java after an upgrade install of 10.3 Install
If you upgrade to 10.3 from an earlier version of OS X instead of doing a full install, chances are that Java is broken. To see if you are affected type java -version in the Terminal. If you see the following line, you are affected:

HotSpot not at correct virtual address. Sharing disabled.
Apple has a Knowledge Base article (#120242) about this. You can also find some workarounds at this Readerware page. The second suggested workaround looks the most promising:
After installing my copy of Panther, I encountered the very same error as you. However, I was not about to perform an "archive and install." Instead, I renamed:
    /System/Library/Frameworks/JavaVM.framework
to
    /System/Library/Frameworks/JavaVM.framework.off
effectively removing it from the installer's path. Next, I loaded the Panther installer, and I performed a "Custom" install of ONLY the "Essential System Software" (which includes Java).

Long story short: this works. Panther does not find an existing JavaVM.framework, and thus it does not get confused. When it finishes, you will find a brand new JavaVM.framework directory, and "java -version" reports "builder 1.4.1_01-99", as it should. Once I was certain everything worked, I then deleted the JavaVM.framework.off directory that I had moved aside.

[robg adds: I reformatted the quote a bit, but changed none of the content.]
    •    
  • Currently 1.50 / 5
  You rated: 3 / 5 (8 votes cast)
 
[18,940 views]  

10.3: Repair Java after an upgrade install of 10.3 | 8 comments | Create New Account
Click here to return to the '10.3: Repair Java after an upgrade install of 10.3' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: Repair Java after an upgrade install of 10.3
Authored by: chancer on Nov 02, '03 01:50:22PM
Well, I wasn't about to re-install the Essential System Software, not after all the tweaks I've done - thanks to this Web site!

I downloaded the latest version of Pacifist, launched it and told it to open the Mac OS X Install packages. Once it loaded the packages I searched and found the Java Package and told Pacifist to install it, replacing existing files and updating existing bundles. Worked like a charm!

I'm not sure if I needed to fix Java, though - I notice I had already been able to load Java applets in Safari. What exactly was broken? Would I ever have noticed? I'm not a programmer and don't need to write anything in Java myself.

[ Reply to This | # ]

10.3: Repair Java after an upgrade install of 10.3
Authored by: GoobleyGook on Nov 04, '03 01:03:30PM

This works great.



[ Reply to This | # ]
10.3: Repair Java after an upgrade install of 10.3
Authored by: stonematt on Nov 05, '03 02:23:07PM

I did this and it worked great.

Anyone know if Software Update will catch that a package was rolled back to the original distribution and re-update?



[ Reply to This | # ]
10.3: Repair Java after an upgrade install of 10.3
Authored by: Anonymous on Nov 02, '03 02:18:06PM
A 'good' response probably is:
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-99)
Java HotSpot(TM) Client VM (build 1.4.1_01-27, mixed mode)


[ Reply to This | # ]
10.3: Repair Java after an upgrade install of 10.3
Authored by: iraqi_pete on Nov 02, '03 10:46:32PM

I had this exact problem. It's because Panther doesn't install java if you have already upgraded to version 1.4.1. The easiest workaround is just an archive and install.

Having the hotspot compiler and interpreter miss-behaving means that you won't be able to launch java applications - like limewire. Applets should be fine.



[ Reply to This | # ]
10.3: Repair Java after an upgrade install of 10.3
Authored by: _Steffan on Nov 11, '03 10:27:27AM

Hi - I'm being a bit dense here, I did a Java 1.4.1 upgrade before installing 10.2.8 and am now running 10.3. Does the response below indicate that Java is working as required or not?

Cheers, Steffan

Last login: Tue Nov 11 14:08:49 on console
Welcome to Darwin!
[Vigor10:~] username% java -version
HotSpot not at correct virtual address. Sharing disabled.
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-69.1)
Java HotSpot(TM) Client VM (build 1.4.1_01-24, mixed mode)
[Vigor10:~] username%



[ Reply to This | # ]
Official Apple fix
Authored by: staplin on Nov 13, '03 11:29:37AM
Apple has put an official procedure to fix this on the Developer Connection that is simpler than doing the whole reinstall.

(Unfortunately, I found this too late to help me with my 2 panther systems...)

[ Reply to This | # ]

10.3: Repair Java after an upgrade install of 10.3
Authored by: TomP on Dec 04, '03 05:17:00PM

I just got around to installing Panther this week, and didn't experience this problem. I had Java 1.4.1 installed and did an upgrade installation of MacOS X 10.3. The system reports

$ java -version
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-99)
Java HotSpot(TM) Client VM (build 1.4.1_01-27, mixed mode)

...which I assume means I'm ok.



[ Reply to This | # ]