The MSI installer provides both a graphical and a console-only installation method.
If you're on Windows 10 or later, you can use the Windows Package Manager from your Windows Terminal.
To install on any version of Windows, you can use the MSI packages or the ZIP package. The following sections provide instructions for these installers. These installers will automatically make the JDK tools available in your PATH.įor Linux, we produce DEB and RPM packages to be used with apt and rpm. For macOS, we produce a PKG installer with similar features. Native installersįor Windows, we produce an MSI installer with a graphical interface. To install, extract one of these packages in a folder of your choice, then set the JAVA_HOME environment variable to that folder.Īlternately, you can use native installers for your OS of choice, as described in the next section. ZIP and TAR.GZ packagesįor Windows, Linux, and macOS, we produce ZIP (Windows) and TAR.GZ (Linux/macOS) packages.
To get the files mentioned in this article, see Download the Microsoft Build of OpenJDK.
You won’t have the RPM files but you will haveĪn RPM spec file stored in ~/rpmbuild/SPECS,Įdit this ~/rpmbuild/SPECS/java-1.6.0-sun.This article describes how to install the Microsoft Build of OpenJDK. “jdk-6u7-linux-i586.bin: No such file or directory,” Running the rpmbuild command under the section “Build Java RPM Packages.”Īfter you get the error (shown above) that says
var/tmp/rpm-tmp.1AYQKX: line 33: cd: jdk1.6.0_07: No such file or directoryĮrror: Bad exit status from /var/tmp/rpm-tmp.1AYQKX (%prep) I optimistically hoped I might be able to get around this snagīy renaming the newer file to the older name: Download]$ mv ~/rpmbuild/SOURCES/jdk-6u12-linux-i586.bin ~/rpmbuild/SOURCES/jdk-6u7-linux-i586.binīut that just got me one step farther: Download]$ rpmbuild -rebuild java-1.6.0-sun-1.6.0.7-1.1.cf.nosrc.rpmĮxecuting(%prep): /bin/sh -e /var/tmp/rpm-tmp.1AYQKX Rpmbuild is expecting the bin file to be called Sh: /home/tom/rpmbuild/SOURCES/jdk-6u7-linux-i586.bin: No such file or directoryĮrror: Bad exit status from /var/tmp/rpm-tmp.W96jt0 (%prep) + sh /home/tom/rpmbuild/SOURCES/jdk-6u7-linux-i586.bin
Warning: group paul does not exist - using rootĮxecuting(%prep): /bin/sh -e /var/tmp/rpm-tmp.W96jt0 Warning: user paul does not exist - using root Warning: InstallSourcePackage at: psm.c:246: Header V3 DSA signature: NOKEY, key ID b56a8bac My first attempt to follow Paul’s instructions got me this: Download]$ rpmbuild -rebuild java-1.6.0-sun-1.6.0.7-1.1.cf.nosrc.rpm The RPM spec file doesn’t work if you run it with Sun’s latest His RPM with the Sun Microsystems Java 1.6 “bin” installer. He details how to custom-build Java installation RPMs by rebuilding Java 6 RPM package are fantastically helpful.
The best instructions I found for installing the Sun JDK on Fedora were from The instructions now refer only to OpenJDK using the java-1.6.0-openjdk package.īut unfortunately had to tweak it because it didn’t work with JDK 6u12. I discovered the previous instructions I had used on Fedora 8 from the My newly upgraded Fedora 10 development box, When I set out to install Sun’s latest Java development kit on