Professional Documents
Culture Documents
go
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
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.
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
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
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
#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
#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
ubuntuforums.org/showthread.php?t=422692
2/8
2/8/13
Ubuntu 11.04 Natty Narwhal
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
and make sure the "Java" option is ticked. Feel free to post any questions.
#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
ubuntuforums.org/showthread.php?t=422692
3/8
2/8/13
Beans: 10 Ubuntu 7.04 Feisty Fawn
#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
#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
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
#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
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
So, Java should be configured properly. However, java will NOT work in firefox. When I look in "about NOTHING is listed. Any ideas?
lugins",
#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
#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]
ubuntuforums.org/showthread.php?t=422692
6/8
2/8/13
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.
#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
ubuntuforums.org/showthread.php?t=422692
7/8
2/8/13
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
Go
ubuntuforums.org/showthread.php?t=422692
8/8