You are on page 1of 8

2/8/13

HowTo:How to Install Java in Ubuntu/Kubuntu - Ubuntu Forums


Search

go

Or, Sign in using your Launchpad ID

Ubuntu Forums > The Ubuntu Forum Community > Ubuntu Specialised Discussions > Community User Name UserName Wiki Discussions > Tutorials & Tips Password HowTo:How to Install Java in Ubuntu/Kubuntu Register Notices Forum Information Ubuntu Community Today's Posts

Remember Me? Login Search

Hello, Unregistered. Tutorials and Tips is now closed to new threads. Please take a moment to read the details in the sticky, which you can find by clicking here.

Problem logging in?


Please click here for a workaround.

Tutorials & Tips The place to find Ubuntu related Tips & Tricks. New Reply Page 1 of 6 1 2 3 > Last Thread Tools April 25th, 2007 Display Modes #1 HowTo:How to Install Java in Ubuntu/Kubuntu This tut will allow you to install a java environment that will allow you to run apps on your firefox/konqueror. We will now install the following Java packages sun-java6-bin - Contains the binaries sun-java6-demo - Contains demos and examples sun-java6-doc - Contains the documentation sun-java6-fonts - Contains the Lucida TrueType fonts from the JRE sun-java6-jdk - Contains the metapackage for the JDK sun-java6-jre - Contains the metapackage for the JRE sun-java6-plugin - Contains the plug-in for Mozilla-based browsers sun-java6-source - Contains source files for the JDK Installing the Java Runtime Environment 1) In terminal, enter the following command: Code: sd atgtisalsnjv6jesnjv6pui snjv6fns uo p-e ntl u-aa-r u-aa-lgn u-aa-ot

Gmaster1440
First Cup of Ubuntu

Join Date: Apr 2007 Beans: 3

2) Once it downloads the packages and begins the installation, youll get a screen that contains the Sun Operating System Distributor License for Java and hit Enter to continue. Youll see a dialog that asks you if you agree with the DLJ license terms. Select Yes, and hit Enter; the JRE will finish installing. Aftermath: First, check that the JRE is properly installed by running the following command from a terminal. java -version You should get similar output 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) Making sure java works on Firefox: Open Firefox and type Code:

ubuntuforums.org/showthread.php?t=422692

1/8

2/8/13

HowTo:How to Install Java in Ubuntu/Kubuntu - Ubuntu Forums


aotpuis bu:lgn

in the address bar and check for java plugin. Making sure Java works on Konqueror Go to any website that uses a java applet and see if it runs. If it doesn't run, click Code: Tos ol

in the Konqueror top bar, go to Code: HM Stig TL etns

and make sure the "Java" option is ticked.

Feel free to post any questions.

April 26th, 2007

#2 Re: HowTo:How to Install Java in Ubuntu/Kubuntu This is my output: steven@steven-desktop:~$ java -version java version "1.4.2" gij (GNU libgcj) version 4.1.2 (Ubuntu 4.1.2-0ubuntu5) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. steven@steven-desktop:~$

stevenrushing
5 Cups of Ubuntu

Join Date: Apr 2007 Location: Hawaii Beans: 32 Ubuntu 7.04 Feisty Fawn

But when i try to apt-get the new one, it says I have the most recent version. Any ideas? =) Steven Rushing

April 26th, 2007

#3 Re: HowTo:How to Install Java in Ubuntu/Kubuntu here is the original article http://www.ubuntugeek.com/how-to-ins...in-ubuntu.html Quote: Originally Posted by Gmaster1440 This tut will allow you to install a java environment that will allow you to run apps on your firefox/konqueror. We will now install the following Java packages sun-java6-bin - Contains the binaries sun-java6-demo - Contains demos and examples sun-java6-doc - Contains the documentation sun-java6-fonts - Contains the Lucida TrueType fonts from the JRE sun-java6-jdk - Contains the metapackage for the JDK

gg234
A Carafe of Ubuntu

Join Date: Nov 2005 Location: London Beans: 85

ubuntuforums.org/showthread.php?t=422692

2/8

2/8/13
Ubuntu 11.04 Natty Narwhal

HowTo:How to Install Java in Ubuntu/Kubuntu - Ubuntu Forums


sun-java6-jre - Contains the metapackage for the JRE sun-java6-plugin - Contains the plug-in for Mozilla-based browsers sun-java6-source - Contains source files for the JDK Installing the Java Runtime Environment 1) In terminal, enter the following command: Code: sd atgtisalsnjv6jesnjv6pui snjv6fns uo p-e ntl u-aa-r u-aa-lgn u-aa-ot

2) Once it downloads the packages and begins the installation, youll get a screen that contains the Sun Operating System Distributor License for Java and hit Enter to continue. Youll see a dialog that asks you if you agree with the DLJ license terms. Select Yes, and hit Enter; the JRE will finish installing. Aftermath: First, check that the JRE is properly installed by running the following command from a terminal. java -version You should get similar output 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) Making sure java works on Firefox: Open Firefox and type Code: aotpuis bu:lgn

in the address bar and check for java plugin. Making sure Java works on Konqueror Go to any website that uses a java applet and see if it runs. If it doesn't run, click Code: Tos ol

in the Konqueror top bar, go to Code: HM Stig TL etns

and make sure the "Java" option is ticked. Feel free to post any questions.

April 26th, 2007

#4 Re: HowTo:How to Install Java in Ubuntu/Kubuntu I have looked and looked and I have not seen an post regarding my following question, so please forgive me if I overlooked something. When I try to install java it always come up to this right here.... Quote:

naughtywill
First Cup of Ubuntu

Join Date: Apr 2007 Location: CANADA

The file should be owned by root.root and be copied to /tmp.

ubuntuforums.org/showthread.php?t=422692

3/8

2/8/13
Beans: 10 Ubuntu 7.04 Feisty Fawn

HowTo:How to Install Java in Ubuntu/Kubuntu - Ubuntu Forums


[Press RETURN to try again, 'no' + RETURN to abort] dpkg: error processing sun-java6-doc (-configure): subprocess post-installation script killed by signal (Interrupt) Errors were encountered while processing: sun-java6-doc E: Sub-process /usr/bin/dpkg returned an error code (1) What is this and how do I get past this ?

April 27th, 2007

#5 Re: HowTo:How to Install Java in Ubuntu/Kubuntu Quote: Originally Posted by stevenrushing This is my output: steven@steven-desktop:~$ java -version java version "1.4.2" gij (GNU libgcj) version 4.1.2 (Ubuntu 4.1.2-0ubuntu5) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. steven@steven-desktop:~$

jespdj
Chocolate-Covered Ubuntu Beans

Join Date: Jun 2006 Location: The Netherlands Beans: 2,185 Ubuntu 12.04 Precise Pangolin

But when i try to apt-get the new one, it says I have the most recent version. Any ideas? =) Steven Rushing You might need to make Sun Java the default by running the following command: Code: sd udt-lentvs-cni jv uo paeatraie -ofg aa

and selecting Sun Java.

April 27th, 2007

#6 Re: HowTo:How to Install Java in Ubuntu/Kubuntu Quote: Originally Posted by naughtywill I have looked and looked and I have not seen an post regarding my following question, so please forgive me if I overlooked something. When I try to install java it always come up to this right here.... What is this and how do I get past this ? Somehow the quoting got mangled a bit, but these are the messages/instructions mentioned: Code:

Compyx
Quad Shot of Ubuntu

Join Date: Mar 2006 Location: Eefde, The Netherlands Beans: 432 Ubuntu 10.04 Lucid Lynx

ubuntuforums.org/showthread.php?t=422692

4/8

2/8/13

HowTo:How to Install Java in Ubuntu/Kubuntu - Ubuntu Forums


Slcigpeiul dslce pcaesnjv6dc eetn rvosy eeetd akg u-aa-o. (edn dtbs ..145 flsaddrcoiscretyisald) Raig aaae . 331 ie n ietre urnl ntle. Upcigsnjv6dc(rm..snjv6dc60-uut2aldb .. nakn u-aa-o fo ./u-aa-o_-02bnu_l.e) . Stigu snjv6dc(-02bnu).. etn p u-aa-o 60-uut2 . Ti pcaei a isalrpcae i de ntatal cnante hs akg s n ntle akg, t os o culy oti h JKdcmnain Yuwl ne t g dwla oeo te D ouetto. o il ed o o onod n f h acie: rhvs jk6dczpjk6dcj.i d--o.i d--o-azp (hoetennudt vrini ti i tefrtisalto) cos h o-pae eso f hs s h is ntlain. Pes vst lae ii ht:/aasncmjvs/onod/ tp/jv.u.o/aaedwlas nwaddwla. Tefl sol b ondb ro.otadb cpe o n onod h ie hud e we y otro n e oid t /m. o tp [rs RTR t tyaan 'o +RTR t aot Pes EUN o r gi, n' EUN o br]

So you should do what it says: Go to http://java.sun.com/javase/downloads/ and click on the "Download" button next to "Java SE 6 Documentation". In the new page, click on the 'Accept License Agreement' radio button. Now click on the package you want (English or Japanese) and save it somewhere in your home directory or on your Desktop. Open a new terminal emulator and (assuming you've downloaded the package to your Desktop), do: Code: sd c Dstpjk6dczp/m uo p eko/d--o.i tp

You can then continue with the installation (by pressing enter in the terminal emulator with apt-get/aptitude running, or Synaptic): the installer doesn't give a lot of feedback, but you should see something similar to this: Code: /m/d--o.i hsbe upce adisald tpjk6dczp a en nakd n ntle. Yucnnwdlt i,i yuws. o a o eee t f o ih

Which means everthing went well. You don't have to remove the package from /tmp yourself, it'll get deleted on your next boot anyway. __________________ "When in doubt, use brute force." -- Ken Thompson

April 30th, 2007

#7 Re: HowTo:How to Install Java in Ubuntu/Kubuntu I installed all of the packages that you suggested and I still can't get Java working. I'm running Feisty and Firefox 2.0.0.3 (I believe). When I run "java -version" I get back:

amadeov
Spilled the Beans

Join Date: Mar 2007 Location: New Orleans, LA Beans: 15

Code: jv vrin".." aa eso 160 Jv(M S RnieEvrnet(ul 160b0) aaT) E utm niomn bid ..-15 Jv HtptT)Cin V (ul 160b0,mxdmd,saig aa oSo(M let M bid ..-15 ie oe hrn)

ubuntuforums.org/showthread.php?t=422692

5/8

2/8/13

HowTo:How to Install Java in Ubuntu/Kubuntu - Ubuntu Forums


So, I know that Java 1.6.0 is installed... and when I run "sudo update-alternatives --config java", it is set to the following: Code: * 1 /s/i/v/aa6snjebnjv. urlbjmjv--u/r/i/aa

So, Java should be configured properly. However, java will NOT work in firefox. When I look in "about NOTHING is listed. Any ideas?

lugins",

May 7th, 2007

#8 Re: HowTo:How to Install Java in Ubuntu/Kubuntu What is the install path for Java 1.6 in Gnome? I need to know in order to initiate initiate Java in Konqueror.

Yggdrasill
5 Cups of Ubuntu

Join Date: Jun 2006 My beans are hidden! Ubuntu 7.04 Feisty Fawn

May 10th, 2007

#9 Re: HowTo:How to Install Java in Ubuntu/Kubuntu after installing the java-doc, where can I access it? where is index.html in the doc dir?

ant_999
First Cup of Ubuntu

Quote: Join Date: Mar 2007 Beans: 3 Originally Posted by Compyx Somehow the quoting got mangled a bit, but these are the messages/instructions mentioned: Code: Slcigpeiul dslce pcaesnjv6dc eetn rvosy eeetd akg u-aa-o. (edn dtbs ..145 flsaddrcoiscretyisald) Raig aaae . 331 ie n ietre urnl ntle. Upcigsnjv6dc(rm..snjv6dc60-uut2aldb .. nakn u-aa-o fo ./u-aa-o_-02bnu_l.e) . Stigu snjv6dc(-02bnu).. etn p u-aa-o 60-uut2 . Ti pcaei a isalrpcae i de ntatal cnante hs akg s n ntle akg, t os o culy oti h JKdcmnain Yuwl ne t g dwla oeo te D ouetto. o il ed o o onod n f h acie: rhvs jk6dczpjk6dcj.i d--o.i d--o-azp (hoetennudt vrini ti i tefrtisalto) cos h o-pae eso f hs s h is ntlain. Pes vst lae ii ht:/aasncmjvs/onod/ tp/jv.u.o/aaedwlas nwaddwla. Tefl sol b ondb ro.otadb cpe o n onod h ie hud e we y otro n e oid t /m. o tp [rs RTR t tyaan 'o +RTR t aot Pes EUN o r gi, n' EUN o br]

So you should do what it says:

ubuntuforums.org/showthread.php?t=422692

6/8

2/8/13

HowTo:How to Install Java in Ubuntu/Kubuntu - Ubuntu Forums


Go to http://java.sun.com/javase/downloads/ and click on the "Download" button next to "Java SE 6 Documentation". In the new page, click on the 'Accept License Agreement' radio button. Now click on the package you want (English or Japanese) and save it somewhere in your home directory or on your Desktop. Open a new terminal emulator and (assuming you've downloaded the package to your Desktop), do: Code: sd c Dstpjk6dczp/m uo p eko/d--o.i tp

You can then continue with the installation (by pressing enter in the terminal emulator with apt-get/aptitude running, or Synaptic): the installer doesn't give a lot of feedback, but you should see something similar to this: Code: /m/d--o.i hsbe upce adisald tpjk6dczp a en nakd n ntle. Yucnnwdlt i,i yuws. o a o eee t f o ih

Which means everthing went well. You don't have to remove the package from /tmp yourself, it'll get deleted on your next boot anyway.

May 20th, 2007

#10 Re: HowTo:How to Install Java in Ubuntu/Kubuntu I installed the sun-java6-jre and -jdk packages, but when I type java -version I get Quote: The program 'java' can be found in the following packages: * j2re1.4 * gij-4.1 * kaffe * jamvm * java-gcj-compat * cacao * sablevm Try: sudo apt-get install <selected package> Make sure you have the 'universe' component enabled bash: java: command not found I also tried the update-alternatives thing, it didn't help. The javac command seems to work just fine, though.

haloedrain
5 Cups of Ubuntu

Join Date: Sep 2006 Beans: 34

ubuntuforums.org/showthread.php?t=422692

7/8

2/8/13

HowTo:How to Install Java in Ubuntu/Kubuntu - Ubuntu Forums


Edit: the following command fixed it: Quote: update-java-alternatives --set java-6-sun I found that in /usr/share/doc/sun-java6-bin/README.alternatives Last edited by haloedrain; May 20th, 2007 at 07:43 PM.. Reason: I fixed my own problem

New Reply Bookmarks Digg del.icio.us StumbleUpon Previous Thread | Next Thread 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 On HTML code is Off Forum Rules Forum Jump Tutorials&Tips

Page 1 of 6 1 2 3 > Last

Google

Go

ubuntu forums - archive - top


vBulletin 2000 - 2013, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical Canonical Ltd. Tango Icons Tango Desktop Project. lingonberry

ubuntuforums.org/showthread.php?t=422692

8/8

You might also like