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:

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
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

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/ ImagesBacteria that enters the
skin is the primary cause of a cellulitis infection. Two types of
bacteria, streptococcus and s
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
class="bbcode_description">PHP Code:
class="bbcode_code">export PATH=/opt/ibm/java-i386-60/jre/bin:$PATH  />
to my ~/.bashrc I can run those IBM jars
shows the correct java version (IBM version) />But the applications that need to run those jars are running unde
Yesterday, I ran the following command in order to allow Juniper
NetConnect VPN software to run on my computer:
class="bbcode_container"> class="bbcode_description">Code:
update-java-alternatives --plugin--verbose --set
And apparently, this screwed up, at the
very least, my Eclipse IDE. The log gives the following error: />
class="bbcode_code">!SESSION 2009-10-26 09:42:37.081
----------------------------------------------- />eclipse.buildId=M20090917-0800
java.version=1.6.0_15 />java.vendor=
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
This is what results from executing
~$ update-alternatives --config java />There is only one alternative in link group 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
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:
class="bbcode_container"> class="bbcode_description">Code:
class="bbcode_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
class="bbcode_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
update-alternatives: warning: not replacing
/usr/share/java with a link.
Please help

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

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

*0  /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   auto
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?


- Technology - Languages
+ Webmasters
+ Development
+ Development Tools
+ Internet
+ Mobile Programming
+ Linux
+ Unix
+ Apple
+ Ubuntu
+ Mobile & Tablets
+ Databases
+ Android
+ Network & Servers
+ Operating Systems
+ Coding
+ Design Software
+ Web Development
+ Game Development
+ Access
+ Excel
+ Web Design
+ Web Hosting
+ Web Site Reviews
+ Domain Name
+ Information Security
+ Software
+ Computers
+ Electronics
+ Hardware
+ Windows
+ C/C++/C#
+ VB/VB.Net
+ Javascript
+ Programming
Privacy Policy - Copyrights Notice - Feedback - Report Violation 2018 © BigHow