[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian's javac vs Sun's new installation of j2sdk



Hello

Michael B Allen (<mba2000@ioplex.com>) wrote:

> Andreas Janssen said:
>> You should go to <http://z42.de/debian/>. Get j2se-package, convert
>> your JRE to a deb, download the matching *debian-deb for your Java
>> version, and install both the downloaded package and the converted
>> JRE. The package management will take care of the symlinks in
>> /etc/alternatives and even install symlinks to make the Java plugin
>> work with Mozilla, Netscape and Firefox. You should probably
>> deinstall the gjc packages first.
> 
> Bah. You can't be serious. Why would anyone be expected to go through
> this procedure just to install Java? Why not just unpack the sun.com
> archive in /usr/local/ and export JAVA_HOME=/usr/local/java and
> PATH=$PATH:${JAVA_HOME}/bin?

Because you only have to download some more KB (which hardly counts
considering the size of Java itself), and after that you have to run
three commands. One for installing the converter, one for the
conversion of the package, another one to install the two java
packages. The package management will automatically create symlinks for
the jave plugin for different browsers and for several binaries like
java, javac, javadoc /and/ their man pages.

If you install Java manually, you have to run the installer script,
edit /etc/profile, and, if you want to use the plugin, create the
symlinks for it. This will of course only make Java available in shells
that actually read /etc/profile. If you use additional shells or some
window manager, you will have to edit their startup files as well. And
if you update Java or switch to another JRE or JSDK, you have to
remember all the changes and symlinks you made.

best regards
        Andreas Janssen

-- 
Andreas Janssen <andreas.janssen@bigfoot.com>
PGP-Key-ID: 0xDC801674 ICQ #17079270
Registered Linux User #267976
http://www.andreas-janssen.de/debian-tipps.html



Reply to: