

# tar -C /opt/java-jdk -zxf jdk-8u121-linux-圆4.tar.gzĬurrently, the system does not recognise our Java JDK installation: For example:Īt this stage, we should have an appropriate Java JDK tarball within our current working directory:Ĭreate a target Java JDK installation directory:Įxtract the previously downloaded Java JDK tarball:

To initiate the download of the desired Java file, copy its URL and start the download using the curl command while accepting the requested Jave license.

The above command outputs a bunch of URLs for your selection. $ curl -s | grep "otn-pub" | cut -d \" -f12 In case that you are attempting to install Java JDK remotely and have absolutely no access to Graphical User Interface and web browser use the following curl method to download Java JDK using a command line.įirst, obtain a correct download URL by using the curl command:

Once done, copy the downloaded file using SCP or FTP client into a final destination. The first option is to download desired Java JDK tarball directly using the web browser, while also accepting the required Oracle Binary Code License Agreement for Java SE license by clicking the provided radio button. From this reason, there are two options on how to download Oracle Java JDK tarball. The website requires the Oracle Binary Code License Agreement for Java SE license to be accepted prior to download. Navigate to Oracle Java JDK page and locate an appropriate system architecture relevant tarball. Let’s start by downloading Java JDK tarball from the official Oracle website. $ – requires given linux commands to be executed as a regular non-privileged user.# – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command.Optionally, curl will be used to download an appropriate Java JDK tarball. Privileged access to your Debian Linux is required. The objective of this guide is to provide a simple to follow steps on how to install Java SE Development Kit on Debian Linux.
