Jdk 7u80 linux x64

How can i install jdk7 on ubuntu 18.04 lts 64bit? [duplicate]

I upgrade my system to ubuntu 18.04 lts, but I work on projects that require JDK 7. How can i install jdk7 on ubuntu 18.04 lts 64bit?

3 Answers 3

Download the JDK for Linux 32-bit or 64-bit (for example: jdk-7u80-linux-x64.tar.gz )

cd /home/"your_user_name"/Downloads 
sudo mkdir -p /usr/local/java sudo cp -r jdk-7u80-linux-x64.tar.gz /usr/local/java/ 
sudo tar xvzf jdk-7u80-linux-x64.tar.gz 
 JAVA_HOME=/usr/local/java/jdk1.7.0_80 JRE_HOME=/usr/local/java/jdk1.7.0_80 PATH=$PATH:$JRE_HOME/bin:$JAVA_HOME/bin export JAVA_HOME export JRE_HOME export PATH 
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.7.0_80/bin/java" 1 sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.7.0_80/bin/javac" 1 sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/java/jdk1.7.0_80/bin/javaws" 1 sudo update-alternatives --set java /usr/local/java/jdk1.7.0_80/bin/java sudo update-alternatives --set javac /usr/local/java/jdk1.7.0_80/bin/javac sudo update-alternatives --set javaws /usr/local/java/jdk1.7.0_80/bin/javaws 
java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) 

Thank you, i used your instructions to install JDK8 and it worked well. Thanks! A few minor points though: If i try to download JDK7 it wants me to log in to an Oracle account. Also steps 8-14 are only needed if the user already has Java installed

Since the bottom fix is no longer working, try this —

  1. Visit http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html
  2. Download the desired java package. i.e, 32bit(x86) or 64bit(x86_64)
    note: you’ll need to sign in to download it as pointed by @Kendzi in the comment below
  3. Change location to your downloads folder(or to where you’ve download the archive) cd ~/Downloads
  4. Extract the archive tar -xvzf jdk-7u80-linux-x64.tar.gz
  5. There should be a new folder available now, named — jdk1.7.0_80 or something similar
  6. Move the folder to a desired location.
    Move it to the default location(recommended) — sudo mv jdk1.7.0_80 /usr/lib/jvm/ note : create the jvm folder if it does not exist with sudo mkdir /user/lib/jvm

Java - update-alternatives --config java

  • Assuming the folder has now been moved to /usr/lib/jvm,
    1. If this is the absolute first time you’re installing Java, just run the update-alternatives command to update the preferred Java as default update-alternatives —config java and select the option number for Java 7
    2. if you have already installed Java once check whether a symlink exists in /etc/alternatives sudo ls -al /etc/alternatives/java
      If you see a listing similar to the following lrwxrwxrwx 1 root root 46 Jun 20 21:51 /etc/alternatives/java -> /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
      The symlink exists and only needs to be updated using the command — update-alternatives —config java
      This will list the available Java executable files available in your system, like so —
      (including the JDK 7 executable you’ve placed in /usr/lib/jvm) Note the asterisk(*) next to option 1. This indicates the default version of Java being used.
      If the JDK 7 location is listed here, enter the option number and hit enter to set JDK 7 as the default.
    3. If for some reason no listing is provided after running the update-alternatives command, check if the symbolic links(symlink) are setup properly sudo ls -al /etc/alternatives/java
      if no file is found, create the symlink — sudo ln -s /etc/alternatives/java /usr/lib/jvm/jdk1.7.0_80/bin/java
      Also, create a symlink in /usr/bin to ensure availability of the Java executable in the terminal. So first check if the file exists in /usr/local— sudo ls -al /usr/bin/java if no file is found, create the symlink — sudo ln -s /usr/bin/java /etc/alternatives/java

    (Fix is no longer working as noted by @Christian Rodriguez)

    After downloading the the Oracle JDK 7 package from Oracle’s website, place the file in the location —

    (create the oracle-jdk7-installer folder if it is not already present)

    Then open a terminal(shortcut: Ctrl+Alt+t ) and execute each of the following commands(one after the other) —

     sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer 

    To verify the installation was successful, execute the following command —

    You should see a message similar to the one shown below —

     java version "1.7.0_76" Java(TM) SE Runtime Environment (build 1.7.0_76-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.76-b04, mixed mode) 

    Источник

    Jdk 7u80 linux x64

    The following instructions describe how to install the Java TM Platform, Standard Edition Development Kit (Java SE 7 Update 80 JDK TM ) and the NetBeans TM IDE 8.0.2 Java SE integrated development environment bundle.

    Contents

    The Software Bundle Distribution

    The Java TM SE Development Kit 7 Update 80 and NetBeans TM IDE 8.0.2 Java SE Software Bundle is distributed for various platforms as follows:

    Installation Filename Platform
    jdk-7u80-nb-8_0_2-windows-i586.exe Windows x86 (32-bit)
    jdk-7u80-nb-8_0_2-windows-x64.exe Windows x64 (64-bit)
    jdk-7u80-nb-8_0_2-linux-i586.sh Linux x86 (32-bit)
    jdk-7u80-nb-8_0_2-linux-x64.sh Linux x64 (64-bit)
    jdk-7u80-nb-8_0_2-macosx-x64.dmg OS X v10.7.3 (64-bit)

    Note: Java TM SE Development Kit 7 Update 80 cobundles JavaFX 2.2.

    Installing the Software Bundle on Microsoft Windows

    To install the software, you must have administrator privileges on your system. The installer places the Java Runtime Environment (JRE) software in %Program Files%\Java\jre7 , regardless of the specified JDK install location.

    Note: This installer does not displace the system version of the Java platform that is supplied by the Windows operating system.

    Before You Install

    1. Verify that your system meets or exceeds the minimum hardware requirements:
      1. 800MHz Intel Pentium III or equivalent
      2. 512 MB of RAM.
      3. 750 MB of free space Note: The installer uses the %USERPROFILE%\Local Settings\Temp directory to store temporary files.
      1. For the 32-bit Windows operating system, the installer file name is jdk-7u80-nb-8_0_2-windows-i586.exe .
      2. For the 64-bit Windows operating system, the installer file name is jdk-7u80-nb-8_0_2-windows-x64.exe .

      Installing the Software

      1. Double-click the installer file to run the installer.
      2. At the Welcome page of the installation wizard, click Next.
      3. At the JUnit License Agreement page, decide if you want to install JUnit and click the appropriate option, click Next.
      4. At the JDK Installation page, specify which directory to install the JDK into and click Next.
      5. At the NetBeans IDE Installation page, do the following:
        1. Specify the directory for the NetBeans IDE installation.
        2. Accept the default JDK installation to use with the IDE or specify another JDK location.

        Installing the Software Bundle on Linux

        You can install the JDK software and NetBeans IDE in directories of your choice. You do not have to be a root user to use this installer unless you choose to install this bundle in a system-wide location.

        Note: This installer does not displace the system version of the Java platform that is supplied by the operating system.

        Before you install

        1. Verify that your system meets or exceeds the recommended minimum hardware requirements:
          1. Pentium III workstation, 800 MHz
          2. 512 MB of RAM
          3. 700 MB of free space Note: The installer uses the /tmp or the /var/tmp directory for temporary files.
          1. For the 32-bit Linux operating system, the installer file name is jdk-7u80-nb-8_0_2-linux-i586.sh
          2. For the 64-bit Linux operating system, the installer file name is jdk-7u80-nb-8_0_2-linux-x64.sh

          Installing the Software

          1. Type the following command from the directory where you placed the installation file: ./
          2. At the Welcome page of the installation wizard, click Next.
          3. At the JUnit License Agreement page, decide if you want to install JUnit and click the appropriate option, click Next.
          4. At the JDK Installation page, specify the directory where to install the JDK and click Next.
          5. At the NetBeans IDE Installation page, do the following:
            1. Specify the directory for the NetBeans IDE installation.
            2. Accept the default JDK installation to use with the IDE or specify another JDK location.

            Note: If you choose to install this bundle into a system-wide location such as /usr/local , you must first login as root to gain the necessary permissions.

            Installing the Software Bundle on OS X

            The Software Bundle can be installed only on OS X v10.7.3 (Lion) or newer. The installer refuses earlier OS X releases.

            Note: This installer does not displace the system version of the Java platform that is supplied by the operating system.

            Before you install

            1. If you are installing on OS X, install the required OS X updates before proceeding further. If you install this bundle without having first installed the proper OS X updates, you may experience unexpected behavior with the installer or the Java platform. Note: You can check for the available updates at http://support.apple.com/downloads.
            2. Verify that your system meets or exceeds the recommended minimum hardware requirements:
              1. Dual-Core Intel (64-bit)
              2. 1 GB of RAM
              3. 700 MB of free space

              Installing the Software

              1. After the download completes, run the installer. The installer file has the .dmg extension.
              2. On the panel that opens double-click the package icon. The package has the .mpkg extension. The installation wizard starts.
              3. At the Introduction page of the installation wizard, click Continue.
              4. At the Installation Type page, select the appropriate option below:
                1. To perform a standard installation of the Software Bundle, click Install.
                2. To specify another installation location, click Change Install Location.

                Uninstalling the Software from Windows

                Each product in the bundle must be uninstalled separately.

                To uninstall the IDE:

                1. Shut down the IDE.
                2. From the Control Panel, select Uninstall a program.
                3. Select NetBeans IDE 8.0.2 and click Remove.

                To uninstall the JDK and JavaFX 2.2:

                1. From the Control Panel, select Uninstall a program.
                2. Select Java(TM) SE Development Kit 7 Update 80 from the list and click Remove.

                Note: If you uninstall the JDK, but want to continue using NetBeans IDE 8.0.2, you must set the IDE’s -jdkhome option to point to an another installation of the JDK as outlined below.

                To uninstall the Java Runtime Environment:

                1. From the Control Panel, select Uninstall a program.
                2. Select Java 7 Update 80 from the list and click Remove.

                To change the value of -jdkhome :

                1. Navigate to the etc folder of the NetBeans IDE installation directory. The default location is C:\Program Files\NetBeans 8.0.2\etc .
                2. Open the netbeans.conf file in a text editor and edit the netbeans_jdkhome option.

                Note: Java TM SE Development Kit (JDK) 5.0 and JDK 6 are not supported on any platform for this release. You must have JDK 7 Update 10 (or newer) on your system to install and run NetBeans IDE 8.0.2.

                Uninstalling the Software from Linux

                Each product in the bundle must be uninstalled separately.

                To uninstall the IDE:

                1. Navigate to the installation directory of the NetBeans IDE.
                2. Type ./uninstall.sh to run the uninstaller.

                To uninstall the JDK and JavaFX 2.2:

                Uninstalling the Software from OS X

                Each product in the bundle must be uninstalled separately.

                To uninstall the IDE:

                1. Shut down the software.
                2. Drag the program folders or files to the Trash. Note that the default location for the IDE and application server is /Applications/NetBeans/ .

                To uninstall the JDK and JavaFX 2.2:

                Finding Additional Documentation

                NetBeans IDE is documented in the software’s help system, however, additional documentation about developing with NetBeans IDE is available at the NetBeans Documentation, Training & Support page.

                For installation troubleshooting help please refer to the NetBeans IDE Installation FAQ.

                See instructions for installing the JDK and JRE on Windows, Linux, and OS X at the Java SE Downloads page.

                Providing Feedback

                To report a bug or to request a feature for the JDK software, please refer to the following web site: http://bugreport.java.com/bugreport/index.jsp.

                To submit your comments or suggestions about the JDK software, please send email to the OpenJDK Governance Board.

                For NetBeans software development team contact information, or to learn more about NetBeans IDE and the NetBeans software community, visit the NetBeans Community Portal.

                To submit feedback about this documentation, please send email to Documentation Feedback.

                Источник

                Читайте также:  Установка kali linux на usb флешку
  • Оцените статью
    Adblock
    detector