[root@jony source]# sh run.sh
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.
Получаю эту ошибку.
Что я сделал?
Скачал правильную версию Jre/ JDK.
rpm -ivh jdk-7u15-linux-x64.rpm
rpm -ivh lolo.rpm (Its jre-7u13-linux-x64 rpm file)
cd source
sh run.sh
Все журналы того, что я сделал:
[root@jony ~]# rpm -ivh lolo.rpm
Preparing... ########################################### [100%]
1:jre ########################################### [100%]
Unpacking JAR files...
rt.jar...
Error: Could not open input file: /usr/java/jre1.7.0_15/lib/rt.pack
jsse.jar...
Error: Could not open input file: /usr/java/jre1.7.0_15/lib/jsse.pack
charsets.jar...
Error: Could not open input file: /usr/java/jre1.7.0_15/lib/charsets.pack
localedata.jar...
Error: Could not open input file: /usr/java/jre1.7.0_15/lib/ext/localedata.pack
[root@jony ~]# rpm -ivh jdk-7u15-linux-x64.rpm
Preparing... ########################################### [100%]
1:jdk ########################################### [100%]
Unpacking JAR files...
rt.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_15/jre/lib/rt.pack
jsse.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_15/jre/lib/jsse.pack
charsets.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_15/jre/lib/charsets.pack
tools.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_15/lib/tools.pack
localedata.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_15/jre/lib/ext/localedata.p ack
[root@jony ~]# cd source
[root@jony source]# sh run.sh
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.
[root@jony source]# rpm -qa | grep -i jre
jre-1.7.0_13-fcs.x86_64
jre-1.7.0_15-fcs.x86_64
[root@jony source]# rpm -qa |grep -i jdk
jdk-1.7.0_11-fcs.x86_64
jdk-1.7.0_15-fcs.x86_64
[root@jony source]# rpm -e daniel.rpm
error: package daniel.rpm is not installed
[root@jony source]# rpm -e jre
error: "jre" specifies multiple packages:
jre-1.7.0_13-fcs.x86_64
jre-1.7.0_15-fcs.x86_64
[root@jony source]# rpm -e jre.1.7.0_15.i586
error: package jre.1.7.0_15.i586 is not installed
[root@jony source]# rpm -e lolo
error: package lolo is not installed
[root@jony source]# jre -e daniel
-bash: jre: command not found
[root@jony source]# rpm -e jre daniel
error: "jre" specifies multiple packages:
jre-1.7.0_13-fcs.x86_64
jre-1.7.0_15-fcs.x86_64
error: package daniel is not installed
[root@jony source]# cd root
-bash: cd: root: No such file or directory
[root@jony source]# cd
[root@jony ~]# rpm -e jre.1.7.0_15.i586
error: package jre.1.7.0_15.i586 is not installed
[root@jony ~]# rpm -e daniel
error: package daniel is not installed
[root@jony ~]# rpm -qa | grep -i jre/jdk
[root@jony ~]# rpm -ivh lolo.rpm
Preparing... ########################################### [100%]
package jre-1.7.0_15-fcs.x86_64 is already installed
[root@jony ~]# cd source
[root@jony source]# sh run.sh
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.
[root@jony source]# cd
[root@jony ~]# rpm -qa | grep -i jre/jdk
[root@jony ~]# rpm -qa | grep -i daniel
[root@jony ~]# rpm -qa | grep -i lolo
[root@jony ~]# rpm -ivh lolo.rpm
Preparing... ########################################### [100%]
package jre-1.7.0_15-fcs.x86_64 is already installed
[root@jony ~]# rpm -e jdk-1.7.0_11-fcs
[root@jony ~]#
[root@jony ~]# rpm -e jdk-1.7.0_15-fcs
[root@jony ~]# rpm -qa | grep -i jdk
[root@jony ~]# rpm -qa | grep -i jre
jre-1.7.0_13-fcs.x86_64
jre-1.7.0_15-fcs.x86_64
[root@jony ~]# rpm -e jre-1.7.0_13-fcs
[root@jony ~]# rpm -e jre-1.7.0_15-fcs
[root@jony ~]# rpm -ivh lolo.rpm
Preparing... ########################################### [100%]
1:jre ########################################### [100%]
Unpacking JAR files...
rt.jar...
Error: Could not open input file: /usr/java/jre1.7.0_15/lib/rt.pack
jsse.jar...
Error: Could not open input file: /usr/java/jre1.7.0_15/lib/jsse.pack
charsets.jar...
Error: Could not open input file: /usr/java/jre1.7.0_15/lib/charsets.pack
localedata.jar...
Error: Could not open input file: /usr/java/jre1.7.0_15/lib/ext/localedata.pack
[root@jony ~]# rpm -ivh jdk-7u15-linux-x64.rpmjdk-7u15-linux-x64.rpm
error: open of jdk-7u15-linux-x64.rpmjdk-7u15-linux-x64.rpm failed: No such file or directory
[root@jony ~]# rpm -ivh jdk-7u15-linux-x64.rpm
Preparing... ########################################### [100%]
1:jdk ########################################### [100%]
Unpacking JAR files...
rt.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_15/jre/lib/rt.pack
jsse.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_15/jre/lib/jsse.pack
charsets.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_15/jre/lib/charsets.pack
tools.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_15/lib/tools.pack
localedata.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_15/jre/lib/ext/localedata.p ack
[root@jony ~]# cd source
[root@jony source]# sh run.sh
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.
[root@jony source]# ^C
[root@jony source]#
Что я сделал не так?
Работает на CentOS 6.x