Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

"Cannot determine a valid Java Home"

D_SchneiderAug 30 2017 — edited Aug 31 2017

I had to do an "emergency deploy" of JRE 8u144 32bit on our Windows 7 64bit installations. I used powershell with psexec to let every single PC install Java with the following switches: jre-8u144-windows-i586.exe INSTALL_SILENT=1 AUTO_UPDATE=0 REBOOT=0 SPONSORS=0 REMOVEOUTOFDATEJRES=1

Somehow quite some of the installations don't work. JRE seems to be installed correctly, but when a JavaWs application is started I get the error "Cannot determine a valid Java Home". What does that mean and how can I fix it without reinstalling JRE everywhere (which probably would break working installations on other PCs, as JRE deletes a working 8u144 installation when rolled out again)?

Any help would really be appreciated as this issue is driving me nuts...

Comments

Timo Hahn
Hi,
you did not mention which version of JDev you are using.
Check your libraries.xml file in the jedev/system<....> folder. My guess is that this file is corrupt.
Depending on the version you have to look for the files below in different directories.

You can try to rename the system directory and restart JDev. The newer version recreate this directory and you get a clean libraries.xml file. Copy the clean file back to the original system folder, delete the newly created folder, and rename the original on back to its original name.

If you JDev version dosn't recreate the folder you have to do an clean install and start JDev. This will recreate the folder.

Hope this helps

Timo
562298
My JDeveloper version is 10.1.3.3.0.4157 if that helps. I'll try the suggestions but doesn't that imply I will lose my libraries settings?

Thanks for help
Timo Hahn
Yes, you'll loose the libraries but only temorary.
It just as a test if the system folder causes the error.
As mentioned before you shouldn't remove the folder but just rename it. so it's possible to retrieve the information later.

Timo
562298
Thanks for the effort Timo. But guess what. I started the JDeveloper today when I came to work and there was no stack trace. Everything just works. I think that is ridiculous (is there some sort of date/time based error going on or something) but I won't complain as long as I can go back to work as usual.

Thank you again for your time and effort.
Timo Hahn
This happens quit often. We have to close JDev and restart it to see some changes to take affect.
Sometimes it's a good idea to reboot the whole machine and see if the error persists.

Nevertheless you should make a copy of your system folder, in case you get a similar error in future. Then you can switch back to the working copy of the system folder and see what happens.


Timo
1 - 5
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 28 2017
Added on Aug 30 2017
2 comments
62,785 views