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 11.1.1.6 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

Command:
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”
appcrash

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.
setjdkpath
That’s all, Now go to command prompt and type javac. If you can see below details then you are done.
javacverify

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

Thank You.

0

About the author

Bhabani(http://dwteam.in) - Currently Bhabani is working as Sr Development Engineer at Harman International. He has good expertise on Oracle, Oracle Data Integrator, Pervasive Data Integrator, MSBI, Talend and Java. He is also contributing in ODI-OTN forum for last 5 years. He is from India. If you want to reach him then please visit contact us page. If you have any doubts or concerns on the above article, please put your question here. Dw Team will try to respond it as soon as possible. Also dont forget to provide your comments / suggestions / feedback for further improvement. Thanks for your time.

Similar Posts

22 comments

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.

command:

D:\Odi\ofm_odi_generic_11.1.1.6.0_disk1_1of2\Disk1\install\
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
C:\Java\jdk1.6.0_25\bin\bin\javaw.exe.

Use below path and it will definitely start.
D:\Odi\ofm_odi_generic_11.1.1.6.0_disk1_1of2\Disk1\install\
win64>setup.exe -jreLoc C:\Java\jdk1.6.0_25

That it is don’t provide bin folder in the path. Thanks

Thnaks Bhabani!!!

Its working fine now..

Thanks a lot bhabani, it is working for me also.

Error: Could not find or load main class com.sun.tools.javac.Main

Receiving the above error:
tried installing the Java 1.6.0.45 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.
Regards
Saurabh

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

thanks for lovely …clear answer really helped me to setup…thanks again..dear

santosh chikane / Reply

pls show the complete path of “variable value”
pls…
waiting for your.reply

Why do you want see the complete variable path? My system variable value will not match to your system variable value.

Let me know if I understood you wrong.

santosh chikane / Reply

I have got it
now my jdk is working:-)

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 ;
C:\users\ekemini>javac
“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).

I am trying to install ODI 11.1.1.7 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.

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
D:\softwares\ofm_odi_generic_11.1.1.6.0_disk1_1of2\Disk1

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 javasoft.com 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\QTJava.zip
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 ?

Thanks,
Kuldip

Like I said many times even in the blog itself, do not use a jdk path having space in it. For your case “Program Files” contains a space.

Hi,
I am trying to install ODI 11.1.1.7 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.

thanks

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 http://www.jabasoft.com and install JRE version 1.3.1 or higher..

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

hi..i just installed java jdk-7u3-windows-i586.. not happening to run it..somebody please help me

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 http://www.javasoft.com 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,
regards,
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.

my path varaible:C:\Program Files\Java\jdk1.8.0_65\bin
c:\Odi\ofm_odi_generic_11.1.1.6.0_disk1_1of2\Disk1\install\
win64>setup.exe -jreLoc C:\Java\jdk1.6.0_25

odi is showing error could u pls help me

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

ntothing hapenned after 2second cmd instalation lanch

Leave a replay to adii Cancel reply

required*

Are you a human? *