I'm using a shared server.
I have newly started using linux mint (linux at all).
I have installed two jre versions on it. One openjdk and another oracle jdk.
Hello, the default java installation is openJDK.
/usr/bin/java -> /etc/alternatives/java
/etc/alternatives/java -> /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
I want to install JDK 1.6, and executed this command:
Code:
alternatives --install /usr/bin/java java /usr/lib/java/jdk1.6.0_45/bin/java 20000
But the symbolic link does change at all. What might be wrong?
I've got java-6-openjdk and java-7-openjdk running on Natty (11.04) on one machine and successfully toggle between them using update-alternatives --config java (or javac).
For some reason this doesn't seem to work on a second machine of identical spec.
I've been following these steps and got up to the check version of new JRE installation part but java -version doesn't return anything.
I have run sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jre1.7.0/bin/java and it returned update-alternatives: using /usr/lib/jvm/jre1.7.0/bin/java to provide /usr/bin/java (java) in auto mode so it's seems I did that part successfully.
It
that's just what I need. thanks, Domicide. How do I read the result? Does status auto mode means it'll be used automatically?
I am unable to run java from jdk.
it says "cannot execute binary file"
I downloaded the jdk again freshly but the problem still persists.
All files have execution permission.
Both OS and JDK are 64bit.
Please help me out.
[XXXXX@YYYYYY bin]$ pwd
/home/XXXXX/apache-tomcat-6.0.18/jdk1.5.0_14/bin
[XXXXX@YYYYYY bin]$ java
bash: /home/XXXXX/java1.5/bin/java: cannot execute binary file
Compiling is easy but when using java to run the programs, it gives Exception found. I am using Ubuntu 12.04 without internet connections. Also, installed Oracle JDK7 and JRE7. Also did the update-alternatives command on java, javac and javaws. Changed the machine java in /etc/profiles. PATH is pointing to oracle java folder.
I want to play this java simulation: http://www.compadre.org/OSP/items/detail.cfm?ID=9640 in java 3d mode on a linux (ubuntu) system. But it doesn't work.
If I switch to java 3d-mode it complains that java 3d is not installed. sudo aptitude install libjava3d-java didn't help.
Then I did a right click in this java app and selected Diagnostics-> About Java 3D.