我尝试使用“ Update-Java-Anternatives”命令从Java 5切换到Java 6,如本页面上所述: https://help.ubuntu.com/community/java

但是之后,当我尝试执行Java时,我会遇到以下错误:

root@webserver:~# java
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

我还试图使用“ Apt-Get”重新安装Java二进制文件,但我没有成功重新安装它。我想发布“ apt-get”错误,但不幸的是,我不知道如何用英语而不是德语打印出错误消息。

我的系统是Ubuntu 8.04根服务器。

这是(Google翻译)英文文本Tring再次安装Java 6:

root@server:~# apt-get install sun-java6-jdk
Reading package lists ... Ready
Dependency tree
Reading state information ... Ready
sun-java6-jdk is already the newest version.
sun-java6-jdk set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 86 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Set up a sun-java6-bin (6-03-0ubuntu2) ...
Could not create the Java virtual machine.
dpkg: error processing sun-java6-bin (- configure):
 Subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 sun-java6-bin
E: Sub-process / usr / bin / dpkg returned an error code (1)

我希望这可以帮助您帮助我。

有帮助吗?

解决方案

出于我自己的好奇心,当您在命令提示符下键入DF时会发生什么?当您输入顶部时,您有多少内存?

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top