Sun Java

Kipton Moravec kip at kdream.com
Fri Apr 27 12:42:46 UTC 2012


On Thu, 2012-04-26 at 11:21 -0700, NoOp wrote:
> 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.
> 
> 
> 
> 
> 
> 

Thanks for the help. I have given up on Sun Java, and the application
program I wanted to use. 

I got Sun Java almost installed until I got to the license screes. I
could not get past it. I tried every key combination I could think of to
say yes or O.K. 

One place said to hit the space key until it asked the question if I
accepted the license or not. I probably pressed the space key 1000
times. No luck. 

Fortunately I found another program that appears to be easier to setup
than the other application, and it has a debian package that installed
without a hitch. (And is not Java based.)

Hopefully the configuration will be finished this morning. And I can
move on to something else.

Kip





More information about the ubuntu-users mailing list