How to repair Java in Ubuntu after trying to switch to Java 6 using update-java-alternatives
- by Kau-Boy
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.