Skip to main content

MarkView All Components - How can I determine which Java Development Kit (JDK) and Java Runtime Environment (JRE) versions are installed on the application server?

Article # 304145 - Page views: 162



Applies To

ERP System: ( Oracle, SAP, Peoplesoft) MarkView Version: (All Versions.)


Need to verify the version of Java for the application server


The JRE is shipped as part of the JDK. To check the version installed, at the command prompt, enter the following command:

$ java -version
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)

The JDK must appear before the Oracle Client in your PATH setting. Either install your JDK before you install the Oracle Client, or edit your PATH setting once both are installed.

To check your PATH setting, at the command prompt type the following:


After typing this command you should see something similar to the following returned to the command session window:


Running the following command will tell you what directory java is executed from on the machine:

which java

The results should look like the following:


Next steps is to verify the contents of the C:\Sun\AppServer\; directory, from the command window please change your directory to C:\Sun\AppServer\.

Then type in the following command:

C:\Sun\AppServer>ls -ltr

The results of this command should look like the following:

total 5853
-rw-r--r--     1 544    everyone 11889375    Mar 04
-r--r--r--     1 544    everyone    17997    Mar 04 LICENSE
-r--r--r--     1 544    everyone     9215    Mar 04 README.txt
-r--r--r--     1 544    everyone    16703    Mar 04 README.html
-rw-r--r--     1 544    everyone     4519    Mar 04 COPYRIGHT
-rw-r--r--     1 544    everyone    10367    Mar 04 THIRDPARTYLICENSEREADME.txt
-rw-r--r--     1 544    everyone    28905    Apr 12 LICENSE.rtf
drwxr-xr-x     9 544    everyone        0    Apr 12 include
drwxr-xr-x     8 544    everyone        0    Apr 12 demo
drwxr-xr-x    32 544    everyone        0    Apr 12 bin
drwxr-xr-x    11 544    everyone        0    Apr 12 lib
drwxr-xr-x    23 544    everyone        0    Apr 12 jre

The existence of a JRE directory does not guarantee that JDK is installed. To confirm that JDK is installed, locate file 'javac' (java compiler) in the below directory (javac is only installed as part of the JDK, not JRE).


Keywords: JDK,JRE,java,application,server,kit,runtime