File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes How to install SUN JDK1.6 on Fedora Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "How to install SUN JDK1.6 on Fedora" Watch "How to install SUN JDK1.6 on Fedora" New topic
Author

How to install SUN JDK1.6 on Fedora

Karthik N Murthy
Greenhorn

Joined: Jan 30, 2008
Posts: 5
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

Joined: Oct 29, 2001
Posts: 8924
    
    9

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 ]

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16136
    
  21

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


Customer surveys are for companies who didn't pay proper attention to begin with.
Reehan Lalkhanwar
Ranch Hand

Joined: Jun 16, 2007
Posts: 106
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.


Thank you,
Reehan
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14266
    
  21

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.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Karthik N Murthy
Greenhorn

Joined: Jan 30, 2008
Posts: 5
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to install SUN JDK1.6 on Fedora