Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to install SUN JDK1.6 on Fedora

 
Karthik N Murthy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Every linux distribution comes with a default JDK( normally Eclipse). I want to install SUN JDK1.6 on Fedora and then want to install NETBEANS 6. But after i execute the file - "jdk-6u3-linux-i586.bin" in the TERMINAL, I STILL Have THE GOOD OLD ECLIPSE JDK in my PC.
The jdk that i installed has just extracted to a folder named "jdk1.6.0_03" in the "HOME FOLDER". I DO NOT KNOW HOW TO DO THE PATH SETTING AND THE REST OF STUFF.


CAN ANYONE PLEASE TELL ME HOW TO INSTALL JDK AND NETBEANS IN LINUX (FEDORA 7) ???


Thanks
 
Joe Ess
Bartender
Posts: 9256
9
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Karthik N Murthy:
Every linux distribution comes with a default JDK( normally Eclipse).


Just a point of clarification, Fedora comes with the GNU Java Runtime (libgcj) and the Eclipse Java Compiler, not a JDK (per the Fedora Project WIKI).
As for installing Sun Java, the wiki points here.

[ April 28, 2008: Message edited by: Joe Ess ]
[ April 28, 2008: Message edited by: Joe Ess ]
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I recommend you move the JDK you "installed" (actually, it just unpacks it) from your home folder to /usr/java, which is where Sun's RPM install likes to put it.

But regardless of where you put it, you'll need to set up PATH and JAVA_HOME to point to it. For more on that subject, see http://www.coderanch.com/t/111163/Linux-UNIX/Linux-EE-questions
 
Reehan Lalkhanwar
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I too am working on Fedora 7 and need to install Java 1.6 but I am not able to find a 64 bit version of Java 1.6 for Fedora.
Any pointers where I can find 64 bit version?
Also the Mozilla (2.0.0.13) seems not to accept the JRE installed.
I am on Intel Pentium Dual Core-64 bit processor.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15203
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a 64-bit version of Java available for Linux on the Sun Java download page (select "Linux x64").

However, Sun's 64-bit version of Java 6 does not include a browser plug-in, so you will not be able to run applets in a browser with this.

I don't know Fedora very well, but for Ubuntu there are a number of solutions: run the OpenJDK version of Java, or install a 32-bit browser and 32-bit Java on your 64-bit system. Sorry, I don't know the details about how to do this on Fedora.
 
Karthik N Murthy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to Joe and Tim Holloway.
I was able to install SUN JDK1.6 and Netbeans 6.0 on Fedora.The Wikipedia link was very useful.
I first logged in "ROOT" and then extracted the "jdk-6u2-linux-i586-rpm" file.
Then I edited the file ".bash_profile" and added the path, as mentioned in the wiki.

Thanks once again for taking out your precious time to reply to my query..
.
[ June 13, 2008: Message edited by: Karthik N Murthy ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic