Re: jre installation problem on RHAS4 upd 3 64bits (ia64)
Ronald Rood wrote:
Hi,
I hope this is a place to find an answer, sofar I missed it. I downloaded the
latest jre from http://java.com. Both the selfinstalling binary as the rpm.
No matter which one I try, both end up with the same problem, when I try java
-version I get 'lang/java/Object' missing.
Are you sure you get this error with the self-extracting file?
I am sure I must be missing some minor details, who can enlighten me ?
For this installation I installen in my own (nonroot) account which I
prepared by making a local rpm database as copy of the systems rpm database.
rpm -ip --relocate /usr=$HOME jre-1_5_0-linux-i586.rpm
The first time this gives an error, after the second time it also gave an
error 'unpack' not found and after the third time I get a message indicating
that the package already has been installed...
I also tried an older version (1.4.2) but that had the same problems. This
should be able to work.
How can you be certain that this should work? Does the RPM specify that it is
re-locatable? Most RPMs are not, and they have to be built in a specific way to
be relocatable. Normally to "relocate" an RPM you have to setup a complete
chroot environment.
Why do I get all those errors at install time ?
Because the RPM is not relocatable?
How do I solve the missing 'lang/java/Object' error ?
Install it as it was meant to be installed...
(for various reasons I am not going to install this system wide as root)
.... or use the binary version not the RPM.
I just download the latest 64bit JDK and unpacked it in my home directory, then
ran java -version. This is what I got:
$ jre1.5.0_11/bin/java -version
java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_11-b03, mixed mode)
This is not the latest Java, however. If you want the latest you should download
from java.sun.com, then you will get Java 1.6
--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555