How to repair Java in Ubuntu after trying to switch to Java 6 using update-java-alternatives

Posted by Kau-Boy on Server Fault See other posts from Server Fault or by Kau-Boy
Published on 2010-06-01T15:22:57Z Indexed on 2010/06/01 15:34 UTC
Read the original article Hit count: 286

Filed under:
|
|

I tried to switch from Java 5 to Java 6 using the "update-java-alternatives" command like explained on this page: https://help.ubuntu.com/community/Java

But afterwards I get the following error when I tried to execute 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.

I also tried to reinstall the java binaries using "apt-get" but I didn't succeed reinstalling it. I would like to post the "apt-get" errors, but unfortunately I don't know how to print out the error messages in English and not in German.

My system is a Ubuntu 8.04 ROOT server.

© Server Fault or respective owner

Related posts about linux

Related posts about ubuntu