CentOS 6 and Sun/Oracle Java Issue
Posted
by
user1710563
on Server Fault
See other posts from Server Fault
or by user1710563
Published on 2012-12-05T21:19:32Z
Indexed on
2012/12/05
23:06 UTC
Read the original article
Hit count: 145
I have a OpenVZ VPS running CentOS 6.3 64 bit and when I try to install JRE 7 64bit using the command:
rpm -Uvh java.rpm
It gives me this error:
Preparing... ########################################### [100%]
1:jre ########################################### [100%]
Unpacking JAR files...
rt.jar...
Error: Could not open input file: /usr/java/jre1.7.0_09/lib/rt.pack
jsse.jar...
Error: Could not open input file: /usr/java/jre1.7.0_09/lib/jsse.pack
charsets.jar...
Error: Could not open input file: /usr/java/jre1.7.0_09/lib/charsets.pack
localedata.jar...
Error: Could not open input file: /usr/java/jre1.7.0_09/lib/ext/localedata.pack
I then tried the command:
java -version
And it gives me this error:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine
Error: A fatal exception has occurred. Program will exit.
Why does this happen if I have more than enough RAM on the VPS to run this (1GB)? Could it be an issue with the host node of the VPS?
Thanks
EDIT 1: Link to beancounter screenshot http://puu.sh/1xwxB
EDIT 2: Link to htop screenshot http://puu.sh/1xwDl
© Server Fault or respective owner