Solved

HPI library

Posted on 2002-06-12
4
1,611 Views
Last Modified: 2007-11-27
While running a java program on a unix platform with Solaris I get the following error -

There was an error trying to initialize the HPI library.
Please check your installation, HotSpot does not work correctly when installed in the JDK 1.2 Solaris Production Release, or with any JDK 1.1.x release.

Does anyone have any idea what the problem might be?
0
Comment
Question by:gab512
  • 3
4 Comments
 
LVL 9

Accepted Solution

by:
Venci75 earned 400 total points
ID: 7072770
I don't know whether this will help, but can try the suggestion listed here:

http://forum.java.sun.com/thread.jsp?forum=37&thread=70603
0
 
LVL 35

Expert Comment

by:girionis
ID: 7072882
 You need a libhpi.so library in the J2SE binary installation specified by your JAVA_HOME environment variable. The library should be at $JAVA_HOME/jre/lib/<arch>/native_threads/libhpi.so.

   Hope it helps.
0
 
LVL 35

Expert Comment

by:girionis
ID: 7072897
 Since you are running Solaris on a Unix box then it should be: $JAVA_HOME/jre/lib/sparc/native_threads/libhpi.so
0
 
LVL 35

Expert Comment

by:girionis
ID: 7072909
 ... and can also go to the jre/lib/sparc/native_threads directory of your bootstrap installation (if you are running solaris on a non-unix box you will need to substitute the sparc with i386) and create the following symbolic link:

ln -s libhpi.so libhpi_g.so

  Hope it helps.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question