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


xetrill
HOME ยป Java

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


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

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

[ubuntu] change to java NOT on update-java-alternatives list
Java

I have had to install a jre other than sun's. (IBM jre) The only installation was from a .rpm
Everything is installed and working (semi) fine.
When I add
PHP Code:
export PATH=/opt/ibm/java-i386-60/jre/bin:$PATH 
to my ~/.bashrc I can run those IBM jars fine.
Code:
java -version
shows the correct java version (IBM version)
But the applications that need to run those jars are running unde
[ubuntu] update-alternatives problem -installing java on Ubuntu - "link group java is broken"
Java

Code:
root@opus:~# sudo update-alternatives --install "/usr/share/java" "java" "/usr/share/java/jdk1.7.0/bin/java" 1
update-alternatives: warning: forcing reinstallation of alternative /usr/share/java/jdk1.7.0/bin/java because link group java is broken.
update-alternatives: warning: not replacing /usr/share/java with a link.
Please help
update-java-alternatives vs update-alternatives --config java
16/11/2014 4:05 pm Java

On Ubuntu 12.04 LTS I have installed Sun's JDK7, Eclipse, and the Arduino IDE. I want the Arduino to use OpenJDK 6 and want Eclipse to use Sun's JDK 7.

From my understanding I need to manually choose which Java to use before running each application. This led me to the update-java-alternatives -l command. When I run this I only see the following:

java-1.6.0-openjdk-amd64 1061
/usr/lib/jvm/java-1.6.0-openjdk-amd64

but when I run 'update-alternatives --config java' I see the following:

*0  /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   auto
mode
1  /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   manual mode
2  /usr/lib/jvm/jdk1.7.0/bin/java                   manual mode
3  /usr/lib/jvm/jre1.7.0/bin/java                   manual mode

I don't understand why the update-java-alternatives doesn't display the same 3 options. I also don't understand how to switch between OpenJDK6 and JDK7. How I can go about using the OpenJDK6 for Arduino development and Sun JDK7 for Eclipse/Android development?




HD Wallpapers
3D
3D Abstract
City
Celebrities
Indian Celebrities
Cars
Travel
Girls
Animals Birds
Movies
Sports
Black White
Nature
Planes
Anime
Food Drink
Dreamy Fantasy
Architecture
Games
Space
Holidays
Flowers
Love
Artistic
Baby
Beach
Bikes Motorcycles
Macro
Computers
Vector
Funny
Army
Textures
Brands
Misc
Music
Other
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .