LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-09-2007, 12:23 PM   #1
vr76413
LQ Newbie
 
Registered: Apr 2004
Posts: 8

Rep: Reputation: 0
Install Java on UBUNTU


hello all..

I installed JDK following the steps mentioned here..
https://jdk-distros.dev.java.net/ubuntu.html


after the completion,i rebooted the machine and i typed
======================================================
rosn@ros-notebook:~$ java -version
java version "1.4.2-02"
Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-02)
Java HotSpot(TM) Client VM (build Blackdown-1.4.2-02, mixed mode)
================================================

My question is, why is it still showing 1.4.2.02 and not 1.5 ?

Thanks
Ram K
 
Old 05-09-2007, 01:05 PM   #2
stealth_banana
Member
 
Registered: Mar 2004
Location: Scotland
Distribution: Debian Sid / Kubuntu
Posts: 170

Rep: Reputation: 30
its in the ubunto repos now.

sudo apt-get install sun-java6-jdk

Code:
java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
I assume you are using ubuntu from the url.

unless you specifically want blackdown which is 1.4.2 as the latest.

Last edited by stealth_banana; 05-09-2007 at 01:06 PM.
 
Old 05-09-2007, 11:47 PM   #3
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
you'll also need to do
Code:
sudo update-alternatives --config java
to set it to the correct version
 
Old 05-29-2007, 08:50 PM   #4
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Rep: Reputation: 32
Quote:
Originally Posted by binary_y2k2
you'll also need to do
Code:
sudo update-alternatives --config java
to set it to the correct version
why does the java pop up box keep showing after the install

here is what I did

Code:
 sudo apt-get install sun-java6-jdk
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libxvidcore4 mplayer-skins libmp4v2-0 libggi2 libgii1 libgii1-target-x
  libxvmc1 libpulse0 libmpcdec3 liblame0 libfaac0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  java-common libltdl3 odbcinst1debian1 sun-java6-bin sun-java6-jre unixodbc
Suggested packages:
  equivs sun-java6-demo sun-java6-doc sun-java6-source sun-java6-plugin
  ia32-sun-java6-plugin sun-java6-fonts ttf-sazanami-gothic
  ttf-sazanami-mincho libmyodbc odbc-postgresql libct1
Recommended packages:
  gsfonts-x11
The following NEW packages will be installed:
  java-common libltdl3 odbcinst1debian1 sun-java6-bin sun-java6-jdk
  sun-java6-jre unixodbc
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 42.6MB of archives.
After unpacking 127MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://au.archive.ubuntu.com feisty/main java-common 0.25ubuntu2 [76.9kB]
Get:2 http://au.archive.ubuntu.com feisty/main libltdl3 1.5.22-4 [168kB]
Get:3 http://au.archive.ubuntu.com feisty/main odbcinst1debian1 2.2.11-13 [64.1kB]
Get:4 http://au.archive.ubuntu.com feisty/main unixodbc 2.2.11-13 [269kB]      
Get:5 http://au.archive.ubuntu.com feisty/multiverse sun-java6-bin 6-00-2ubuntu2 [26.2MB]
Get:6 http://au.archive.ubuntu.com feisty/multiverse sun-java6-jre 6-00-2ubuntu2 [6324kB]
Get:7 http://au.archive.ubuntu.com feisty/multiverse sun-java6-jdk 6-00-2ubuntu2 [9493kB]
Fetched 42.6MB in 13m21s (53.1kB/s)                                            
Preconfiguring packages ...
Selecting previously deselected package java-common.
(Reading database ... 114012 files and directories currently installed.)
Unpacking java-common (from .../java-common_0.25ubuntu2_all.deb) ...
Selecting previously deselected package libltdl3.
Unpacking libltdl3 (from .../libltdl3_1.5.22-4_i386.deb) ...
Selecting previously deselected package odbcinst1debian1.
Unpacking odbcinst1debian1 (from .../odbcinst1debian1_2.2.11-13_i386.deb) ...
Selecting previously deselected package unixodbc.
Unpacking unixodbc (from .../unixodbc_2.2.11-13_i386.deb) ...
Selecting previously deselected package sun-java6-bin.
Unpacking sun-java6-bin (from .../sun-java6-bin_6-00-2ubuntu2_i386.deb) ...
Selecting previously deselected package sun-java6-jre.
Unpacking sun-java6-jre (from .../sun-java6-jre_6-00-2ubuntu2_all.deb) ...
sun-dlj-v1-1 license has already been accepted
Selecting previously deselected package sun-java6-jdk.
Unpacking sun-java6-jdk (from .../sun-java6-jdk_6-00-2ubuntu2_i386.deb) ...
sun-dlj-v1-1 license has already been accepted
Setting up java-common (0.25ubuntu2) ...

Setting up libltdl3 (1.5.22-4) ...

Setting up odbcinst1debian1 (2.2.11-13) ...

Setting up unixodbc (2.2.11-13) ...

Setting up sun-java6-bin (6-00-2ubuntu2) ...

Setting up sun-java6-jre (6-00-2ubuntu2) ...

Setting up sun-java6-jdk (6-00-2ubuntu2) ...

root@tomatoland:~# sudo update-alternatives --config java

There are 2 alternatives which provide `java'.

  Selection    Alternative
-----------------------------------------------
          1    /usr/bin/gij-wrapper-4.1
*+        2    /usr/lib/jvm/java-6-sun/jre/bin/java

Press enter to keep the default[*], or type selection number: 2
Using `/usr/lib/jvm/java-6-sun/jre/bin/java' to provide `java'.
did i miss some thing

TT
 
Old 06-04-2007, 02:46 PM   #5
rholiday
LQ Newbie
 
Registered: Aug 2005
Location: Wisconsin
Distribution: Ubuntu
Posts: 17

Rep: Reputation: 0
to use java 1.5 I simply downloaded the files from sun's website and after installing Eclipse I was able to import the jre and develope 1.5 applications in Eclipse.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Install Java Media Framework (JMF) on Ubuntu tram Linux - Software 7 10-05-2012 07:46 AM
LXer: How to Install Java Runtime Environment (JRE) in Ubuntu LXer Syndicated Linux News 0 04-20-2007 12:33 AM
ubuntu java Clarence27 Ubuntu 5 02-12-2007 06:34 AM
Install Java on Ubuntu tfm1 Linux - Software 1 06-26-2006 11:47 AM
what directory is java install? what CMD determined where java is install? Thks. suse2166 Linux - Newbie 2 09-04-2005 08:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration