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 Installing Java SDK in Linux - Manual vs From Repo Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Installing Java SDK in Linux - Manual vs From Repo" Watch "Installing Java SDK in Linux - Manual vs From Repo" New topic
Author

Installing Java SDK in Linux - Manual vs From Repo

Karthik Jayachandran
Ranch Hand

Joined: Feb 18, 2009
Posts: 88

I used to manually download java sdk .bin file and configure them (setting path,classpath,etc) for development. But some distros include java sdk in their own software repositories.

I use to change my distro often (my /home remains the same always) and I have to select Java SDK from the software repo and download it again and again. What is the difference in using the java sdk by manually configuring and from the using repo ? Which way is better ?
Jeevan Sunkersett
Ranch Hand

Joined: Jul 03, 2007
Posts: 77
does this help
Upgrading JDK 1.6 to 1.7 on red hat linux
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16137
    
  21

The Java that "comes with" some distros is almost always OpenJDK, not the Oracle/Sun JDK.

For a long, long time, OpenJDK/IcedTea was functionally not complete enough for all purposes, and most notably, couldn't reliably run J2EE appservers. More recent releases apparently are complete, but I spent the last 2 days being battered by OpenJDK in a recent release of CentOS, because that particular OpenJDK is not complete enough for Java 7 requirements, and I kept forgetting to set JAVA_HOME to use the Oracle JDK instead of the default IcedTea JDK.

For RedHat-style distros, you can download an RPM-based install from Oracle. It doesn't do that much over a straight binary install, but it does standardize the location of your installed JDKs and JREs (/usr/java), and it does register the JDK in your RPM database as an officially-installed package.


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

Joined: Feb 18, 2009
Posts: 88

Thanks for the info. Always thought OpenJDK was somewhat related to Oracle.


Tim Holloway wrote: OpenJDK/IcedTea was functionally not complete enough for all purposes


Does it mean OpenJDK/IcedTea not recommended ?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

I always prefer installing my own JDK from oracle's download site, and I also install any and all Java-related stuff (Eclipse, Maven, Tomcat, etc.) from their respective web sites. That way I know exactly what I'm getting (and where I put it!)


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Installing Java SDK in Linux - Manual vs From Repo