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…