How to set PATH environment variable on JRE version 1.5

Hi, I have a program that requires me to set the PATH environment variable to point to JRE version 1.5, since I need to access the program through the command line. So, any ideas on how to do this?

+4
source share
3 answers

Go to Control Panel> System> Advanced and edit the environment variables. Add ", C: \ path \ to \ the \ jre \ bin" to the PATH variable. Open a new terminal and make a profit.

+8
source

In linux from the console:

export PATH=$PATH:your_jre_path_here 

In the window:

  • On the desktop, right-click My Computer and select Properties.
  • In the "System Properties" window, click on the "Advanced" tab.
  • In the Advanced section, click the Environment Variables button.
  • In the "Environment Variables" window, select the "Path" variable in the "System Variables" section and click the "Edit" button. Add or modify path lines using the paths that you want to access. Each separate directory is separated by a semicolon, for example: C: \ Program Files, C: \ Winnt; C: \ Winnt \ System32
+3
source

Set JAVA_HOME:

Right-click My Computer and select Properties.

On the Advanced tab, select Environment Variables, and then edit JAVA_HOME to indicate where the JDK software is located, for example, C: \ Program Files \ Java \ jdk1.7.0_79

Be sure to download a compatible version of the Java JDK for the 64-bit or 32-bit version from http://java.sun.com/javase/downloads/index.jsp .

+2
source

All Articles