![]() ![]() The objective of this guide is to provide a simple to follow steps on how to install Java SE Development Kit on Debian Linux. ![]() Privileged access to your Debian Linux is required. $ – 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. Let’s start by downloading Java JDK tarball from the official Oracle website. Navigate to Oracle Java JDK page and locate an appropriate system architecture relevant tarball. ![]() The website requires the Oracle Binary Code License Agreement for Java SE license to be accepted prior to download. 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.įrom this reason, there are two options on how to download Oracle Java JDK tarball. And as far as I know, there's no ZIP available from Sun. Probably it does other things too as the Java will probably not find its way to the Windows Control Panel by itself. $ 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. 1 1 asked at 1:12 opensas 59.7k 78 249 383 2 Java installer will (or at least should) set JAVAHOME. The above command outputs a bunch of URLs for your selection. Update-alternatives: error: no alternatives for java # 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. ![]()
0 Comments
Leave a Reply. |