Copied and edited from Murga forum (http://oldforum.puppylinux.com/puppy/vi ... 65#1036881).
Now that Oracle has changed the packaging and licensing rules for Java, the open-source OpenJDK (& JRE) becomes essential for use in Puppy (and any Linux). Oracle licensing prohibits free redistribution of its proprietary versions. Java versions after 8 support only 64-bit architectures; versions after 10 no longer include the Java Network Launch Protocol (JNLP - javaws) feature. The 32-bit version of JRE may no longer be available for free.
I have upgraded the "Java Interface" (javaif) components to support OpenJDK, whether installed from the package manager repositories or obtained elsewhere. The JNLP function is provided by "Iced Tea" packages identified as icedtea-web or icedtea-netx, which are also in the repos.
A source of up-to-date 64-bit versions of OpenJDK and IcedTea is AdoptOpenJDK (https://adoptopenjdk.net). I have downloaded JDK (& JRE) 12, JDK 11 JDK-JRE and IcedTea-Web 1.8.3, and made SFS and pet packages of them, available from my MediaFire account:
http://www.mediafire.com/folder/n1gwntca5dh12/Open_Java
UPDATE 11/18/2019:
The LTS version, 11, has been updated to 11.0.5. I have uploaded an SFS file containing it and IcedTea-Web-1.8.3 together:
http://www.mediafire.com/file/0bc94x4yb ... 0.sfs/file
End of update
The "get_java" pet package has downoaded the Oracle-provided Javas as well as creating pets and SFS files for any java archive (tarball). It was intended to avoid re-distributing of the Oracle packages by letting users download their own copy. Now that I am aware that open-source versions are available, there is no need for the get_java download function.
Although get_java can build java archives into pets and SFS packages, that opertion is so simple that a separate tool is unnecessary. The steps:
- 1. Download a tar.gz archive file from a web site.
- 2. Create a new directory/folder, /opt/[jdk or jre]-[version from archive name].
- 3. Click on the archive file and expand it into the new directory.
I have discontinued development of get_java and have removed it from woof-CE. I encourage placing the AdoptOpenJDK packages in the Puppy repos, for general access.
------------------------------------------------------------------------------
The simplest and probably best way to get the latest 32- or 64-bit version of open JRE is to install it from the PPM repos. Starting with Bionic Pup, the latest version is actually 11 along with Iced Tea 1.8. Installing the icedtea-netx package will include its dependency version of openjdk. The installed size is about 160M.
The BusterPup repo also has openjdk 11 but with icedtea-netx 1.7.2, which still works. However, installing its icedtea-netx or openjdk-jre may not include openjdk-jre-headless, which is required, so must be installed, too.
------------------------------------------------------------------------------
To check an installation of a Java package or to make it usable without rebooting, enter from a console/terminal:
javaiftest
If IcedTea-netx/Web is installed, this will include a check of the JNLP support. Be sure to respond to that prompt, to skip or select it. It will pop up a demonstration window.
To support the OpenJDK packages in Puppy distros built from woofCE before 2020, the attached version of javaif must be installed. Package javaif-20191009 supports open-source OpenJDK and IcedTea Java packages as well as
those in ubuntu & debian repositories. (Downloaded 198 times in Murga forum.)
Richard