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


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 Long Does it Take to Get Rid of Cellulitis?
Java
Cellulitis is a skin bacterial infection that commonly affects the skin’s surface on lower legs. When treated with antibiotics, cellulitis symptoms decrease within a few days. If left untreated, cellulitis can be fatal. SymptomsClose up of a woman's neck and chest.Medioimages/Photodisc/Photodisc/Getty ImagesA cellulitis infection is typically detected by swollen, warm, red or tender skin accompanied by a fever. In certain cases, blisters or small red spots may form on the skin’s surface.
CausesCross-section of bacteria.Jupiterimages/Photos.com/Getty ImagesBacteria that enters the skin is the primary cause of a cellulitis infection. Two types of bacteria, streptococcus and s
[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-java-alternatives broke my Eclipse! PLEASE HELP!!
Java
Yesterday, I ran the following command in order to allow Juniper NetConnect VPN software to run on my computer:
Code:
sudo update-java-alternatives --plugin--verbose --set ia32-java-6-sun
And apparently, this screwed up, at the very least, my Eclipse IDE. The log gives the following error:
Code:
!SESSION 2009-10-26 09:42:37.081 -----------------------------------------------
eclipse.buildId=M20090917-0800
java.version=1.6.0_15
java.vendor=
[ubuntu] update-alternatives for java
Java
I need to install an older version of java (Java 1.5) in my ubuntu machine, and make it default java VM in spite of my current installation.
This is what results from executing update-alternatives:
~$ update-alternatives --config java
There is only one alternative in link group java: /usr/lib/jvm/java-6-openjdk/jre/bin/java
Nothing to configure.
I am no sure what my next step should be. The worse is that I can find no repository or anything similar in the internet that provides a Java 1.5 VM. I am addicted to use "apt-get install" for everything, so I am having a hard time understanding the process.
I suppose
[ubuntu] update-alternatives: error: alternative javac can't be a slave of java...
Java
Hello, I'm trying to install Oracle JDK 1.6.0_30 on Ubuntu Server 11.10. OpenJDK 6 and OpenJDK 7 are already installed, and I'm setting up OracleJDK using update-alternatives.
I've done this with no problems on my Ubuntu Desktop 11.10 workstation, but the same process is resulting in this error on the server:
Code:
update-alternatives: error: alternative javac can't be a slave of java: it is a master alternative.
The setup process is:
1. Download, extract, and copy the extracted jdk1.6.0_30 to usr/lib/jvm/jdk1.6.0_30.
2. Setup
[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
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?



Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .