problem:linux:ubuntu_java
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | problem:linux:ubuntu_java [2019/04/12 13:13] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Ubuntu Java ====== | ||
+ | |||
+ | **By default Ubuntu runs GCJ, the GNU Java, instead of Sun's Java.** | ||
+ | |||
+ | The ' | ||
+ | |||
+ | / | ||
+ | -Xmx128m -cp / | ||
+ | |||
+ | this command line specifies the location of your plugins directory (-Dplugins.dir), | ||
+ | |||
+ | Additionally, | ||
+ | |||
+ | export PATH=/ | ||
+ | |||
+ | making sure that your ' | ||
+ | |||
+ | export JAVA_HOME=/ | ||
+ | |||
+ | Or make an alias in your .bashrc for ' | ||
+ | |||
+ | alias java='/ | ||
+ | |||
+ | (Based on Albert Cardona' | ||
+ | |||
+ | A Debian-based repository can also be used, contributed and tested by Paolo Ariano. It can be downloaded from: | ||
+ | http:// | ||
+ | |||
+ | ===== Java Installation on an Ubuntu based system ===== | ||
+ | |||
+ | First install the Java version you want/need: | ||
+ | |||
+ | sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts | ||
+ | |||
+ | replace the 6 by 5, if you need a Java 5. You can also replace the jre by jdk if you want a javac. | ||
+ | |||
+ | To change the default java command: | ||
+ | |||
+ | sudo update-alternatives --config java | ||
+ | |||
+ | and select the Version you want. | ||
+ | |||
+ | You can check the result by: | ||
+ | |||
+ | user@ubuntu: | ||
+ | java version " | ||
+ | Java(TM) 2 Runtime Environment, | ||
+ | Java HotSpot(TM) Server VM (build 1.5.0_15-b04, | ||
+ | |||
problem/linux/ubuntu_java.txt · Last modified: 2019/04/12 13:13 by 127.0.0.1