Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update JDK instructions

Java SE is required for running OpenMRS applications and developing OpenMRS modules. Java SE 8 is used as an example for this instruction.

...

Note
Note: The instructions are for the Windows 64 bit system. If your Windows system is 32bit, download and install the jdk-8u261-windows-i586.exe instead.32-bit version of the JDK.
  1. If you have another version of Java SE installed, uninstall it, and delete the system environment variables that are related to JDK and JRE.
  2. To create an Oracle account, follow the create account link.
  3. Download Java SE 8 .
    1.  Go to the Oracle JAVA SE Java downloads site
    2. Right click on jdk-8u261-windows-x64.exe, select Open link in incognito window.

      Note
      Note: If you click the  jdk-8u261-windows-x64.exe link directly, the file will not download.
      In the new browser windowclickjdk-8u261-windows-x64.exe.
      A popup displays.

      Click on the Windows header and then the click on the download link labelled x64 installer

    3. A pop-up will appear. In the popup, select the checkbox labeledI reviewed and accept the Oracle Technology Network License Agreement for Oracle Java SE, then select click on the green download button to download jdk.
    4. The Oracle account sign in window opens. Sign in to your Oracle account.
      Download startsThe download should now start.
  4. To install Java SE 8,  double click the downloadedjdk-8u261-windows-x64.exe executable file file.
  5.  When the installation is complete, verify that both JRE and JDK are configured correctly.
    1. Open a command line window.
    2. At the command prompt, enter java -version, you should see output like the following

    output: 
    1. (note that your version might differ):

      Code Block
      Java version "1.8.0_261" 
      Java(TM) SE Runtime Environment (build 1.8.0_261-b12) 
      Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)


  6.  At the command prompt, enter javac -version, you should see output like the following output(note that your version might differ):

    Code Block
    Javac 1.8.0_261


...

Install Java SE 8 on Ubuntu

To install Java SE 8 on Ubuntu, follow these steps:

  1. Run the update package command:

    Code Block
    sudo apt-get update


  2. Install the OpenJDK on it's own as a package using this command:

    Code Block
    sudo apt-get install openjdk-8-jdk


  3. To test the installation, type java -version, you should see the following output:

    Code Block
    OpenjdkOpenJDK version "1.8.0_272"
    OpenJDK Runtime Environment (build 1.8.0_272-8u272-b10-0ubuntu1~20.04-b10)
    OpenJDK 64-Bit Server VM (build 25.272-b10, mixed mode)





...