Link to home
Start Free TrialLog in
Avatar of dwcronin
dwcroninFlag for United States of America

asked on

how to install java for kubuntu

I want to install java on my kubuntu system.  It isn't listed under add/remove programs.  I find java files with synaptic but I don't know what to install (SE EE ME JRM JDK ... ?).  I also looked at Sun's web site and I saw RPMs and self-extracting archives but I don't know how to install these in ubuntu.

1) What do I need to make java run
2) How do I install them in kubuntu
Avatar of Mick Barry
Mick Barry
Flag of Australia image

to see whats available, try:

apt-cache search java

or

apt-cache search sun

then:

 apt-get install <package>

to install it

Avatar of dibbz
dibbz

1. install java-package
sudo apt-get install java-package

2. go to http://www.java.com/en/download/manual.jsp and choose "Linux (self-extracting file)", optionally choose the 64bit one, save it, it will be jre-xxxx.bin

3. make a compatible package
fakeroot make-jpkg jre-6u7-linux-i586.bin

4. install package that was just created
sudo dpkg -i sun-j2re1.6_1.6.0+update7_i386.deb

Done!

Avatar of dwcronin

ASKER

Not done yet for me.  I typed what you said on step 3 and I got the message:

-------------------------------------------
Creating temporary directory: /tmp/make-jpkg.OiQJRZ5911
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk-doc.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk-doc.sh sun-j2sdk.sh

Detected Debian build architecture: i386
Detected Debian GNU type: i486-linux-gnu

No matching plugin was found.
Removing temporary directory: done
---------------------------------------------

I cannot continue with step 4 because no package was made.  What should I do?
u shouldn't need to make a package, there should already be one available
did you do a search for what packages are available as I suggested?

I read what you told me to type:

apt-cache search java

but it gives lots of files and I don't know which ones I need.  I'm not trying to do anything spectacular.  I want to use my 32 bit laptop computer using kubuntu to write a java program with netbeans that makes a nice window where I can enter a golf score ( any input really).  

I don't know what files I need to make java run.  I am a C++ programmer learning java.
objects: Sun java is not in the ubuntu repository. Maybe you are referring to debian non-free ?

I tested this on a fresh kubuntu install before posting. Can you confirm that you downloaded it OK?

roach@hal:/tmp$ cat /etc/issue
Ubuntu 8.04.1 \n \l

roach@hal:/tmp$ ls -la jre*
-rw-r--r-- 1 root root 19754758 2008-08-18 16:27 jre-6u7-linux-i586.bin

roach@hal:/tmp$ file jre-6u7-linux-i586.bin
jre-6u7-linux-i586.bin: POSIX shell script text executable

roach@hal:/tmp$ fakeroot make-jpkg jre-6u7-linux-i586.bin
Creating temporary directory: /tmp/make-jpkg.SBzAE23714
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk-doc.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk-doc.sh sun-j2sdk.sh

Detected Debian build architecture: i386
Detected Debian GNU type: i486-linux-gnu

Detected product:
    Java(TM) Runtime Environment (JRE)
    Standard Edition, Version 1.6.0+update7
    Sun Microsystems(TM), Inc.
Is this correct [Y/n]:
dibbz: Your discussion format is a great idea!  Here is what I have:

dwcronin@hardcase:/tmp$ cat /etc/issue
Ubuntu 7.04 \n \l

dwcronin@hardcase:/tmp$ ls -la jre*
-rw-r--r-- 1 dwcronin dwcronin 19754758 2008-08-18 10:51 jre-6u7-linux-i586.bin

dwcronin@hardcase:/tmp$ file jre-6u7-linux-i586.bin
jre-6u7-linux-i586.bin: Bourne shell script text executable

dwcronin@hardcase:/tmp$ fakeroot make-jpkg jre-6u7-linux-i586.bin
Creating temporary directory: /tmp/make-jpkg.YQuliS5658
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk-doc.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk-doc.sh sun-j2sdk.sh

Detected Debian build architecture: i386
Detected Debian GNU type: i486-linux-gnu

-------------------------------- mine says ---------------------------------------
No matching plugin was found.
Removing temporary directory: done
----------------------------------------------------------------------------------------

================== yours says =================
Detected product:
    Java(TM) Runtime Environment (JRE)
    Standard Edition, Version 1.6.0+update7
    Sun Microsystems(TM), Inc.
=============================================

Is this correct [Y/n]: no they don't match  There were more differences above what I indicated ( like the ubuntu version ) and I don't know what is important.
ASKER CERTIFIED SOLUTION
Avatar of dibbz
dibbz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you for the help.  I didn't know how to work with  the multiverse.  I am going to update my system to hardy now and get the newer system working ( akayou'll probably hear from me soon on EE ;)