Sun Java
NoOp
glgxg at sbcglobal.net
Thu Apr 26 18:21:24 UTC 2012
On 04/24/2012 12:53 PM, Kipton Moravec wrote:
> I have a fresh install of Lubuntu.
>
> I have a program that requires (Oricle) Sun Java.
>
> I went to https://help.ubuntu.com/community/Java
>
> It said:
>
> JRE only
> Only supports Oracle (Sun) Java 6 JRE (which covers the needs of 99 % of
> all computer users). It pulls the packages from Oracle's website and
> installs them, comparable to the way Adobe Flash Player is being
> installed.
>
> * http://www.duinsoft.nl/packages.php?t=en
...
>
> So I tested.
>
> kip at k5prk-ms:/usr/local$ java -version
> The program 'java' can be found in the following packages:
> * gcj-4.4-jre-headless
> * openjdk-6-jre-headless
> * cacao
> * gij-4.3
> * jamvm
>
> This looks like OpenJDK not Sun-6-java.
>
> So thinking something was wrong, I tried the apt-get again.
>
> kip at k5prk-ms:/usr/local$ sudo apt-get install update-sun-jre
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> update-sun-jre is already the newest version.
update the database for mlocate:
$ sudo apt-get updatedb
Then check again:
$ apt-cache policy update-sun-jre
update-sun-jre:
Installed: 1.1.3
Candidate: 1.1.3
Version table:
*** 1.1.3 0
500 http://www.duinsoft.nl/pkg/ debs/all i386 Packages
100 /var/lib/dpkg/status
$ java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)
$ sudo update-alternatives --config java
There are 4 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
* 0 /opt/java/32/jre1.6.0_31/bin/java 2000 auto
mode
1 /opt/java/32/jre1.6.0_31/bin/java 2000
manual mode
2 /usr/bin/gij-4.4 1044
manual mode
3 /usr/bin/gij-4.5 1045
manual mode
4 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061
manual mode
$ ls -al /etc/alternatives/java
lrwxrwxrwx 1 root root 33 2012-02-15 11:39 /etc/alternatives/java ->
/opt/java/32/jre1.6.0_31/bin/java
BTW: unless you are sure that your "program that requires (Oricle) Sun
Java" can use the still unreleased Java 7, I'd recommend you stick with 6.
More information about the ubuntu-users
mailing list