How to setup jdk path in windows 7

How to setup jdk path in windows 7:

1st download the JDK7 from here.

Now if your are going to install 64 bit jdk on a 64 bit OS and also having an intention to install ODI then better install java in a location without having any space. For example C:\java\jdk1.7.

*Never use 32 jdk on 64 bit OS.*

This is because there is a problem normally comes while installing ODI on a 64 bit OS. I am going to recreate the same error just make you clear on this. If you use below command to start the setup.exe, you will get an error as follows

setup.exe -jreLoc C:\Program Files\Java\jdk1.7.0

Output: “C:\Program\Java\jdk1.7.0\bin\javaw.exe” not found.

lets try with using double quote around the path.
setup.exe -jreLoc “C:\Program Files\Java\jdk1.7.0”

So at this point its very much clear not to use paths having space.. In my system i am following as C:\Java\Java\jdk1.7.0

Okay lets come to the point. After installation go to the bin location C:\Java\Java\jdk1.7.0\bin  and copy the path.

Next proceed as per steps given below.
That’s all, Now go to command prompt and type javac. If you can see below details then you are done.

If there is any problem during your confiuration then you will find below message
‘javac’ is not recognized as an internal or external command,
operable program or batch file.

Thank You.

About Bhabani 86 Articles
Bhabani has 12 plus years of experience in Data warehousing and Analytics projects that has span across multiple domains like Travel, Banking and Financial, Betting and Gaming Industries. Solution areas he focuses on designing the data warehouse and integrating it with cloud platforms like AWS or GCP. He is also a Elite level contributor at OTN forum more than 9 years. He loves to do experiment and POC on different integration tools and services. Some of his favorite skills are Redshift, Big Query, Python, Apache Airflow, Kafka, HDFS, Map Reduce ,HIVE, Habse, Sqoop, Drill, Impala.


  1. Hi Bhabani,

    Thanks for the post!!
    I am facing one issue while installing ODI on Windows-7(64bit).
    I have installed JDK1.6.0_25(64bit) on C Drive, I have also set Class Path for Environment Variable.
    As u said, it is working fine when I execute javac.


    win64>setup.exe -jreLoc C:\Java\jdk1.6.0_25\bin

    When I press Enter “Oracle Universal Installer” starts but after some time it gives error message like
    The Java RunTime Environment was not found at

  2. Error: Could not find or load main class

    Receiving the above error:
    tried installing the Java also but no success..

    the prompt windows says “Preparing to launch Oracle Universal Installer from C:\Users… please wait”
    and nothing happens.

    Can you please help.

    • you might have some problem with jdk version. Plz install jdk in a path having no space and start the setup.exe from cmd as like below.

      setup.exe -jreLoc YOUR_JDK_PATH

  3. Please i did not understand what you mean by “Then single click in variable value and go to the first character by pressing the home button in your keyboard.”
    I follow your instructions very well and you did a good job, we need people like you to show me a baby in the industry.
    That said on my system variable path, here is what already there;
    \Program Files (x86)\QuickTime\QTSystem\
    I add this in front;
    C:\Java\Java\jdk1.7.0_67\bin;C:Program Files (x86)\QuickTime\QTSystem\
    But when i go to the command prompt and type javac i get this ;
    “jacac is not recognized as internal or external command,operable program or batch file.

    • Marshall,
      Did you type jacac or javac? See your last line . Also after setting the path you need to start a new command prompt. You should not test it on the existing or previously opened window. Let me know your findings.

      Also the 1st question you asked, I was just trying to say that put the copied path details in to the beginning of the variable value ( either press home button or keep pressing your left arrow button to go to the 1st character).

  4. I am trying to install ODI on windows 7(64 bit) machine which has JDK 7 installed on it. The ODI installation goes smooth till the configuration screen then it exits. When I checked the logs it says “java.lang.OutOfMemoryError: PermGen space” error. I have added the Environment variable “USER_MEM_ARGS= -Xms32m -Xmx200m -XX:MaxPermSize=350m “. However this is not helping to overcome the error. Please let me know if I need to check something out here.

  5. Hi Bhabani,
    I followed your instruction to install ODI. I found some problem as others replied on your blog here. Again, I followed your instruction to overcome on this. But still, I get the issue. Looks like, Oracle does not want me to install its product on my system:) . Here is my setting and issues.

    I am at this place in command prompt

    I ran this command

    setup.exe -jreLoc C:\Program Files (x86)\Java\jdk1.7.0_65

    Then below was shown in another window

    checking swap space: 0 mb available, 512 mb required. Failed <<<
    some requirement checks failed

    Continue with the installation, Continue? (y/n) y

    Please wait ….

    Then I got the error in the prompt window

    The Java Run Time Environment was not found at C:\ProgramFiles(x86)\Java\jdk1.7.0_65\bin\javaw.exe .
    Hence,the Oracle Universal Installer cannot be run

    Please visit and install JRE version 1.3.1 or higher and try again …

    This is my

    CLASS_PATH: .;C:\Program Files (x86)\Java\jre7\lib\ext\
    JAVA_HOME : C:\Program Files (x86)\Java\jdk1.7.0_65\bin;C:\Program Files (x86)\Java\jdk1.7.0_65\lib;C:\Program Files (x86)\Java\jdk1.7.0_65\jre;C:\Program Files (x86)\Java\jre7;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (x86)\Java\jre7\lib;
    PATH : C:\Program Files (x86)\Java\jdk1.7.0_65\bin;C:\Program Files (x86)\RSA SecurID Token Common;D:\app\acere\product\11.1.0\db_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\OBIEE-web\Oracle_BI1\bin;C:\OBIEE-web\user_projects\domains\bifoundation_domain\opmn;D:\Oracle\Middleware1\Oracle_BI1\products\Essbase\EssbaseServer\bin;D:\Oracle\Middleware1\Oracle_BI1\bin;D:\Oracle\Middleware1\Oracle_BI1\opmn\bin;D:\Oracle\Middleware1\Oracle_BI1\opmn\lib;D:\Oracle\Middleware1\Oracle_BI1\perl\bin

    fyi, I have installed OBIEE 11g on my system.

    Could you please have a look at it and give some suggestions ?


  6. Hi,
    I am trying to install ODI on windows 7(64 bit) machine which has JDK 6 installed on it.I tried all the suggestions given by the group.i have set the java path correctly but when i try to install it showing that jdk/jre location not found.some body please help to come over this issue.


  7. I followed the steps and I am getting error as below

    ” The Java Run Time Envionrment was not found at C:\Java\jre1.8.0\bin\bin\javaw.exe. Hence,the Oracle Universal Installer cannot be run.
    Please visit and install JRE version 1.3.1 or higher..

    Not sure why this issue as I have JRE 1.8 version Installed..

  8. hi,

    I’ve done all the steps described in above blog (with Java 1.8) but still am unable to install ODI. error goes like this
    The Java RunTime Environment wasnot found at C:\Java\bin\javaw.exe. Hence, the Oracle Universal Installer can not be run.
    Please visit and install JRE version 1.3.1 or higher and try again.
    I’ve tried every bin location of Java1.7 and Java1.8 but still it ends at above error.
    when i run OUI from windows menu. it runs fine but doesn’t recognize any Oracle product on ODI installtion path

    Please help,
    Foqia Khan

    • Can you give information about your java installation directory? Also provide the command you are using.
      Make sure you are giving java home path, not till the bin directory.

  9. my path varaible:C:\Program Files\Java\jdk1.8.0_65\bin
    win64>setup.exe -jreLoc C:\Java\jdk1.6.0_25

    odi is showing error could u pls help me

  10. C:\Users\Zackd\Desktop\ODI\Disk1\setup.exe -jreLoc C:\Java\

    ntothing hapenned after 2second cmd instalation lanch

  11. # A fatal error has been detected by the Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x70bf7132, pid=5796, tid=6052
    # JRE version: 6.0_29-b11
    # Java VM: Java HotSpot(TM) Client VM (20.4-b02 mixed mode windows-x86 )
    # Problematic frame:
    # C [mso40uiwin32client.dll+0x167132]
    # If you would like to submit a bug report, please visit:
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.

Comments are closed.