mmaterew.blogg.se

Linux downlaod java jdk terminal
Linux downlaod java jdk terminal













linux downlaod java jdk terminal
  1. LINUX DOWNLAOD JAVA JDK TERMINAL INSTALL
  2. LINUX DOWNLAOD JAVA JDK TERMINAL UPDATE
  3. LINUX DOWNLAOD JAVA JDK TERMINAL DOWNLOAD

Update-alternatives -install /usr/bin/jar jar /opt/java/current-java/bin/jar 1065 & sleep 1s Update-alternatives -set idlj /opt/java/current-java/bin/idlj & sleep 1s Update-alternatives -install /usr/bin/idlj idlj /opt/java/current-java/bin/idlj 1065 & sleep 1s Update-alternatives -set extcheck /opt/java/current-java/bin/extcheck & sleep 1s Update-alternatives -install /usr/bin/extcheck extcheck /opt/java/current-java/bin/extcheck 1065 & sleep 1s # the file /opt/java/current-java/bin/ControlPanel was ignored Update-alternatives -set apt /opt/java/current-java/bin/apt & sleep 1s Update-alternatives -install /usr/bin/apt apt /opt/java/current-java/bin/apt 1065 & sleep 1s Update-alternatives -set appletviewer /opt/java/current-java/bin/appletviewer & sleep 1s Update-alternatives -install /usr/bin/appletviewer appletviewer /opt/java/current-java/bin/appletviewer 1065 & sleep 1s

linux downlaod java jdk terminal linux downlaod java jdk terminal

Update-alternatives -set jexec /opt/java/current-java/lib/jexec & sleep 1s Update-alternatives -install /usr/bin/jexec jexec /opt/java/current-java/lib/jexec 1065 & sleep 1s

LINUX DOWNLAOD JAVA JDK TERMINAL UPDATE

execute the inst.cmds file to update your system java settings paste the commands into the inst.cmds textfile copy the 'update-alternatives' commands below Note: the following commands can be obtained or changed quickly by executing the helper.tool script as described in the next sectionĬd /opt/java & touch inst.cmds & chmod +x inst.cmds and it does!īy using this symlink method you only need to execute the following commands once. You only have to update your system configuration files using the commands in this section once because it always expects the find the latest version of Java located at `/opt/java/current-java'. When a new version comes out you only change 1 simple setting so that, for example, `current-java' points to `jdk2.0' (or any other version you wish to use). Note that these are all using the " /opt/java/current-java" sym-link. # here are the complete instructions for updating to a new JDK versionħ. # if you need to update the jdk version, simply delete current-java and recreate it so that is points to the folder containing the most recent version of java # /opt/java/current-java now points to /opt/java/jdk1.7.0_67 Sudo ln -s /opt/java/jdk1.7.0_67 /opt/java/current-java Create a sym-link for the current JDK version.īy pointing `current-java' to the folder containing the current JDK version you can make the update process easier. Create and change directory to /opt/java and extract the. Within the Terminal, change directory to where the JDK was downloaded (in my case ~/Downloads) and copy the.

LINUX DOWNLAOD JAVA JDK TERMINAL DOWNLOAD

If you see "x86_64" (amd64, ia64, alpha, or any other 64bit string) you need to download the 64bit JDK version. You can use the following command to determine which JDK version to download: rpm" file.ĭownload the file into your Downloads directory.įor example /home/YOUR_USERNAME/Downloads Using your browser, download Oracle JDK from here.Ĭhoose the correct version for your system architecture: 32-bit (x86) or 64bit (圆4).ĭownload the Linux version which ends in the ". Sudo apt-get remove openjdk* icedtea* default-jre default-jdk gcj-jre gcj-jdk icedtea-plugin icedtea-pluginģ. # OpenJDK JDK/JRE, IcedTea JDK/JRE/browser-plugin, and GCJ JDK/JRE # Remove everything unrelated to Oracle Java: Remove the current OpenJDK or IcedTea installation(s). Typically for KDE you can also do: Alt + F2 -> konsole -> EnterĢ. Typically for Gnome you can also do: Alt + F2 -> gnome-terminal -> Enter Open up a new Terminal window: Menu -> Accessories -> Terminal The installation for JRE is very similar but probably not 100% compatible with this guide.ġ. Note: At the time of writing the current 64bit version was jdk-7u67-linux-圆4.tar.gz.Ĭhange the commands below to use the correct filename which you have downloaded. # Quickly jump to the update-alternatives section. # Get the update-alternatives helper tool here.

LINUX DOWNLAOD JAVA JDK TERMINAL INSTALL

# If you wish to Install Oracle JDK, continue on the first section. # If you need to Update your Oracle JDK version, click here. I recommend installing Oracle JDK using this guide because updating to a new JDK version is an extremely simple 3-step process. This tutorial is a more complete version of the existing tutorials at:















Linux downlaod java jdk terminal