• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

can't use java 1.5?

 
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've installed all the latest updates, incl 10.4.3 and J2SE50Release3.

java -version
HotSpot not at correct virtual address. Sharing disabled.

I then get version 1.4.2_09.

I've used the java version tool and changed from 1.4.2 to 5.0 by default. But for some reason, my java home is pointing to 1.4.2.

I wonder: Is there a startup script that's causing this? Where should I look? ( I should know, I know) .
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not really a direct answer, but this page may give you some starting points for further research.
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java 5.0 "missing installation instructions" are here.

But the error, "HotSpot not at correct virtual address. Sharing disabled." is another curiosity. I've seen this complaint a lot on the Apple boards, but no real solutions. A lot of fingers have been pointed at QuickTime updates, but I don't know whether that's valid. Some users have reported that using Pacifist with the latest Java 5.0 update resolves the issue.

I would first install any other updates you might need, then follow the steps in the "missing installation instructions" above, and then see if you still get the HotSpot virtual address error. If so, then Pacifist seems to be the next step.
 
Garrett Smith
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To use the J2SE 5.0 version of any command-line Java utility, such as java or javac, specify the full path to the J2SE 5.0 version of the command. This usually means prepending the command with the path /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/

So I need something like a startup script to set $JAVA_HOME, right?

setenv JAVA_HOME = "/System/Library/Frameworks/Java.VM.framework/Versions/1.5/Commands/";
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First read Marc's link to "missing installation instructions".

In your '/Users/<someuser>' folder you should have a '.bash_profile' file - if not create one.

In this file you type:


Now every time you open a Terminal your java is setup - just like on a window PC.

Ren�
 
When I was younger I felt like a man trapped inside a woman’s body. Then I was born. My twin is a tiny ad:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!