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

Re: about installing Java

On 13. feb. 2015 09:46, Klaus Jantzen wrote:
On 02/13/2015 01:54 AM, Jack Chuge wrote:
I want to install the latest version of Java on my debian desktop. Is
there any quick way like using a terminal command? Though, I think
debian is the most stable Linux distro I've ever used so far, on the
other hand, I'm a newby to it. Any support is appreciated.
Goto java.com, download the jdk1.8.xxxx.tar.gz for your computer
architecture and unpack it to a suitable directory as described in the
installation instructions in the download site (all takes you 5 min.).

I put my java into "/opt/jdk1.8.0_31".
I use it e.g. to work with Eclipse.

Get the distro like Klaus says, and then get the "java-package" package (also from backports, if needed) , containing the command make-jpkg, which builds a Debian package from the given Java distribution file.

This does not seem to handle browser-plugins though.

After make-jpkg and dpkg -i, you can do "update-java-alternatives". For browser-plugins you could then run e.g. "update-alternatives --install /usr/lib/iceweasel/plugins/libjavaplugin.so iceweasel-javaplugin.so /usr/lib/jvm/jdk-8-oracle-x64/jre/lib/amd64/libnpjp2.so 2000" and "update-alternatives --config iceweasel-javaplugin.so"

Reply to: