• 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 ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Install of JRE produces VM Initialization error  RSS feed

Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just executed the self-extracting file from sun for Solaris:
j2re-1_4_2_09-solaris-*.sh. I want to execute a different version of Java than is "formally" installed on my Solaris box. The installation went fine and when I execute

it yields:

When I try and run one of my Java applications, I get:

I realize that there must be some interaction between the 1.4 Java launcer I just installed and the older (1.2) JRE "formally" installed. Can anyone tell me how I can get my newly installed (private) JRE to run?
- Rolf.
[ September 26, 2005: Message edited by: Michael Ernest ]
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not familiar with solaris, but on linux, I would check two things:

JAVA_HOME should point to the installed JDK (which is the parent of a jre, if you install it).
Well - you're only talking about a JRE, not a jdk.
Perhaps JAVA_HOME points to the older jre's parent dir?

The classpath shouldn't point to the old jre too.
Posts: 20728
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JAVA_HOME is a convention used by many (not all) Java apps. If there's any time Java itself references this environment variable, I've never heard of it.

The JRE's library classpath is implicit and shouldn't be explicitly declared.

Normally, all that's required is to implicitly (via PATH) or explicitly (/usr/local/java/bin/java) invoke the java runtime to get things to work unless there's some sort of load library issue.

I'm really very disappointed in how Sun installs Java under SunOS. They made much better allowances for multiple JVM releases on Linux.

Incidentally, to get alternate JVMs into Solaris, I bend the Linux conventions to avoid the Solaris naming conflict by unpacking the JVM into a /usr/java.d directory. So for example, I can run JDK1.5.0 using the command /usr/java.d/jdk1_5_0/bin/java.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!