sun java – Atlantic Linux Blog http://atlanticlinux.ie/blog Thoughts on running an Irish Linux business Fri, 22 Aug 2014 15:00:13 +0000 en-US hourly 1 https://wordpress.org/?v=4.5.1 Java on Debian tip http://atlanticlinux.ie/blog/java-on-debian-tip/ http://atlanticlinux.ie/blog/java-on-debian-tip/#respond Tue, 10 Nov 2009 20:00:49 +0000 http://atlanticlinux.ie/blog/?p=165 The default Java environment installed by Debian is the GNU Compiler for Java, while GNU have made remarkable progress with this – anyone doing mainstream Java development will probably prefer to install the latest Sun Java environment on their system – even free software projects like Hadoop are primarily tested in this environment.

Most Linux distributions provide packages for Sun’s Java as well as GCJ and probably OpenJDK. When you install more than one package which provides similarly named commands, Debian’s Alternatives System comes into play – allowing you to select one command or another. When you install a different Java, you can of course manually update each Java command (java, javac, javadoc, jconsole, jmap,jps and so on) using the update-alternatives command, but if you want a quicker way, try the update-java-alternatives command from the java-common package.  It will automatically update the paths to all provided Java commands in one go once you tell it which installed Java environment you wish to use, for example,

update-java-alternatives -s java-6-sun
]]>
http://atlanticlinux.ie/blog/java-on-debian-tip/feed/ 0