Java se runtime environment 7 update 79 lỗi năm 2024

During installation of Java using rpm files, I faced issues many times. After that, I found a better way to install java from Sun site. Using below steps I have installed java successfully many times without facing any issues. We can also install multiple version of java easily if required. Oracle has also released Java 8. To install it read article

Show

Use following step by step instructions to install or update Java. I recommend reading carefully instruction for downloading Java from Linux command line.

Downloading Latest Java Archive

Java latest archive is available on its official site. We recommend to download latest version of Java from Oracle official website. After completing download also extract archive with given commands.

For 64 Bit:-

cd /opt/

wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz"

tar xzf jdk-7u79-linux-x64.tar.gz

For 32 Bit:-

cd /opt/

wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-i586.tar.gz"

tar xzf jdk-7u79-linux-i586.tar.gz

Note: If Above wget command doesn’t not work for you watch this example video to download java source archive using terminal.

Use archive file as per your system configuration. For this example we are using CentOS 7.0 (64 bit) system.

Install Java with Alternatives

After extracting Java archive file, we just need to set up to use newer version of Java using alternatives. Use the following commands to do it.

cd /opt/jdk1.7.0_79/

alternatives --install /usr/bin/java java /opt/jdk1.7.0_79/bin/java 2

alternatives --config java

There are 3 programs which provide 'java'. Selection Command


  • 1 /opt/jdk1.7.0_60/bin/java
  • 2 /opt/jdk1.7.0_72/bin/java 3 /opt/jdk1.7.0_79/bin/java Enter to keep the current selection[+], or type selection number: 3 [Press Enter]

Now you may also required to set up javac and jar commands path using alternatives command.

alternatives --install /usr/bin/jar jar /opt/jdk1.7.0_79/bin/jar 2

alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_79/bin/javac 2

alternatives --set jar /opt/jdk1.7.0_79/bin/jar

alternatives --set javac /opt/jdk1.7.0_79/bin/javac

Check Installed Java Version

Use following command to check which version of Java is currently being used by system.

java -version

java version "1.7.0_79" Java(TM) SE Runtime Environment (build 1.7.0_79-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

Configuring Environment Variables

Most of Java based application’s uses environment variables to work. Use following commands to set up these variable properly. It’s also good to add following commands to any start-up script like ~/.bashrc or ~/.bash_profile.

  • Setup JAVA_HOME Variable

# export JAVA_HOME=/opt/jdk1.7.0_79

  • Setup JRE_HOME Variable

# export JRE_HOME=/opt/jdk1.7.0_79/jre

  • Setup PATH Variable

# export PATH=$PATH:/opt/jdk1.7.0_79/bin:/opt/jdk1.7.0_79/jre/bin

I hope above steps will help you for installing Java on your Linux system. You can follow above steps to install multiple version of Java as same time but you can use only one version at a time.

You are trying to download Oracle patches like JRE 6, JRE 7, JRE 8, JDK 8, and JDK 11 for Windows and JRE 8 for Mac and the download fails.

Cause

This is because you're not logged in to Oracle. To download you should provide your login credentials.

Resolution

Follow the steps given below to resolve this issue:

  1. These are the download links of the Oracle applications: JRE 6, JRE 7, JRE 8, JDK 8, and JDK 11 for Windows and JRE 8 for Mac. Click on any application which you want to download and provide your login credentials. Once you login to the application, the installer file will automatically be downloaded.
  2. If you're using Endpoint Central Build Version 10.0.319 and above
    • You'll be able to find an option to 'Upload' near the Download failed error message. Using the Upload option you can install this patch.
    • Else navigate to Patch Mgmt -> Patches -> Downloaded Patches -> Search for the Bulletin ID of the application which you want to install and click on the Patch ID to find the Patch Name. Then go to Upload Patches -> Search for the Bulletin ID which has the same Patch Name and click on Install Patch.

      Here are the Bulletin IDs for Oracle applications:

      • JRE 6 - TU-011
      • JRE 7 - TU-030
      • JRE 8 - TU-053
      • JDK 8 - TU-160
      • JDK 11 - TU-802
      • JRE 8 for Mac - MAC-033 Refer this document to know how to upload patches using the Upload Patches option.
  3. If you're using Endpoint Central Build Version below 10.0.319
    • Rename the downloaded file in this format: <Patchid>-<Patchname> Reference image attached below will explain how the Patchname can be identified for the corresponding Patch ID
      Java se runtime environment 7 update 79 lỗi năm 2024
      PS: You can find the PatchID from Configuration status->Draft download failure-> Execution status(Download Failed Patches, in case of APD) ->PatchID .
      
      
      Operating System Patch ID Bulletin ID Patch Description Java Setup File* Windows 323263 TU-053 Java 8 Update 321 (64-bit) (8.0.3210.7) 323263-jre-8u321-windows-x64.exe Windows 323264 TU-053 Java 8 Update 321 (8.0.3210.7) 323264-jre-8u321-windows-i586.exe Windows 323266 TU-160 Java SE Development Kit 8 Update 321 (64-bit) (8.0.3210.7) 323266-jdk-8u321-windows-x64.exe Windows 323267 TU-160 Java SE Development Kit 8 Update 321 (32-bit) (8.0.3210.7) 323267-jdk-8u321-windows-i586.exe Windows 323265 TU-802 Java SE Development Kit (x64) (11.0.14) 323265-jdk-11.0.14_windows-x64_bin.exe MAC 603555 MAC-033 Java Runtime Environment for Mac (1.8.321) 603555-jre-8u321-macosx-x64.dmg Windows 300796 TU-030 Java Runtime Environment (1.7.79) 300796-jre-7u79-windows-i586.exe Windows 300797 TU-030 Java Runtime Environment X64 (1.7.79) 300797-jre-7u79-windows-x64.exe Windows 315118 TU-030 Java 7 Update 271 315118-jre-7u271-windows-i586.msi Windows 315119 TU-030 Java 7 Update 271 (64-bit) 315119-jre-7u271-windows-x64.msi Windows 300537 TU-011 Java Runtime Environment (1.6.45) 300537-jre-6u45-windows-i586.exe Windows 300538 TU-011 Java Runtime Environment X64 (1.6.45) 300538-jre-6u45-windows-x64.exe * Copy the 'Java Setup File' name for the respective PatchID and rename the downloaded file.
    • Navigate to the <Desktop Central Installed Directory>\webapps\DesktopCentral\Store and place the renamed files.
    • Once the process is complete, redeploy the failed configuration.

If the issue persists even after following the above-mentioned resolutions, please feel free to contact Support.