Tags: configuration, desktop, file, install, installation, installed, java, jre, pro, succesfully, win
Bad Installation. No JRE found in configuration file
On Java Studio » Desktop Technologies
10,241 words with 13 Comments; publish: Fri, 21 Sep 2007 18:21:00 GMT; (15062.50, « »)
I've succesfully installed Java 1.4.2 on other pc's, but I have one Win XP Pro that won't install.
It looks like the installation goes ok, and a Java Web Start shortcut is placed on the desktop. When I run the shortcut, I get this message: "Bad Installation. NO JRE found in configuration file."
What can I do to fix this? I've done everything the same as the succesful installs. Thanks.
Jim
http://javadesktop.developerfaqs.com/q_java-desktop_1693.html
All Comments
Leave a comment...
- 13 Comments

- I have a similar problem with windows 2k. I noticed that the javasoft entry in the registry is greyed out and I cannot change anything about it even when logged on as the administrator.Have you made any progress on this?(another) Jim#1; Sun, 15 Jul 2007 17:50:00 GMT

- Sorry, I haven't heard anything, either. I'm almost to the point that I'm looking at re-installing Windows using the cd from Dell. Don't know if that will help :-(#2; Sun, 15 Jul 2007 17:50:00 GMT

I don't know about the windows, but I had the same problem on Linux.
I installed 1.4.2 as root and root could run javaws but any other user could not. The solution was to update ~<user>/.java/.deployment/deployment.properties. I copied the one from root. Here is the content:
#
#Wed Dec 10 18:02:57 EST 2003
deployment.javaws.jre.0.registered=true
deployment.javaws.jre.0.platform=1.4
deployment.javaws.logFileName=
deployment.javaws.player.bounds=514,398,572,403
deployment.javaws.jre.0.osname=Linux
deployment.javaws.jre.0.path=/usr/java/j2sdk1.4.2_02/jre/bin/java
deployment.javaws.showConsole=true
deployment.javaws.jre.0.product=1.4.2_02
deployment.javaws.logToFile=false
deployment.javaws.player.manager=0
deployment.javaws.jre.0.osarch=i386
deployment.javaws.cache.dir=/tmp/.javaws/cache
deployment.javaws.player.mode=1
deployment.javaws.jre.0.location=http\://java.sun.com/products/autodl/j2se
deployment.javaws.version=javaws-1.4.2_02
deployment.javaws.jre.0.enabled=true
deployment.javaws.proxy.httpproxyoverride=
The similar file seems to be c:\Documents and Settings\<user>\Application Data\Sun\Java\Deployment\deployment.properties
#3; Sun, 15 Jul 2007 17:50:00 GMT

I got exact the same problem.
You know what? Mine is a freshly installed Windows XP prefessional with latest service pack. The JDK is also the latest: JDK 1.4.2 and NetBeans3.5.1.
I see no Web Start icon anywhere. When I click javaws.exe (under C:\j2sdk_nb\j2sdk1.4.2\jre\javaws), I got a message saying, Bad installation, no JRE found in configuration file.
Ling
#4; Sun, 15 Jul 2007 17:50:00 GMT

Allright people. I had the exact same problem on windows 2000. It seems the JRE that is installed with the latest SDK (1.4.2) doesn't install a proper config file for web start. Here's what I did to fix it:
1. I went to java.com
2. I started the automated installation for the JRE
This will install a second copy of the JRE (with _03 appended, the SDK has _02!) and webstart will work immediately after that. For reference, here's the properties file it installed:
deployment.javaws.jre.0.platform=1.4
deployment.javaws.jre.0.registered=true
deployment.javaws.jre.0.osname=Windows
deployment.javaws.jre.0.path=d\:\\development\\j2re\\bin\\javaw.exe
deployment.javaws.jre.0.product=1.4.2_03
deployment.javaws.jre.0.osarch=x86
deployment.javaws.jre.0.location=http\://java.sun.com/products/autodl/j2se
deployment.javaws.version=javaws-1.4.2_03
deployment.javaws.jre.0.enabled=true
Could someone try this configfile
(in c:\documents and settings\{insert user here}\application data\sun\java\deployment.properties)
with a 1.4.2 SDK installation and see if it works? Be sure to change the path line of course.
#5; Sun, 15 Jul 2007 17:50:00 GMT

- I had the same problem as described and altered the configfile (it was blank when I opened it) per gimbal2's instruction and all works fine now.#6; Sun, 15 Jul 2007 17:50:00 GMT

- Worked perfect except the configuration file path was located here:c:\documents and settings\{insert user here}\application data\sun\java\deployment\deployment.propertiesNote the addition of the deployment directory.Thanks for sharing this information!#7; Sun, 15 Jul 2007 17:50:00 GMT

- Did you find a solution to fix this. I get that error when ever I try to open the coffee cup?#8; Sun, 15 Jul 2007 17:50:00 GMT

- I can't go to automated install. Everytime I go there it forces me to manual install. How do I stop that to try your fix?#9; Sun, 15 Jul 2007 17:50:00 GMT

- I can't do automated install. The website forces me to manual. Do I added in the information under the cited config folders. I somewhat computer literate, but not quite. Please advise.#10; Sun, 15 Jul 2007 17:50:00 GMT

Thanks for this post. The properties info helped me fix it on my machine which has versions 1.5.0_03 and 1.5.0_05 installed (did not need to install JRE).
Here's the code from my original properties file (at C:\Documents and Settings\<username>\Application Data\Sun\Java\Deployment\deployment.properties) when having the problem:
#deployment.properties
#Thu Jan 19 18:19:20 CST 2006
deployment.javaws.splash.index=$USER_HOME\\cache\\javaws\\splash\\splash.xml
deployment.version=1.5.0
deployment.capture.mime.types=true
deployment.browser.path=C\:\\Program Files\\Internet Explorer\\iexplore.exe
#Java Web Start jre's
#Thu Jan 19 18:19:20 CST 2006
deployment.javaws.jre.1.registered=true
deployment.javaws.jre.0.platform=1.5
deployment.javaws.jre.0.registered=true
deployment.javaws.jre.1.enabled=true
deployment.javaws.jre.1.location=http\://java.sun.com/products/autodl/j2se
deployment.javaws.jre.0.path=C\:\\Program Files\\Java\\jre1.5.0_05\\bin\\javaw.exe
deployment.javaws.jre.0.product=1.5.0_05
deployment.javaws.jre.1.osarch=x86
deployment.javaws.jre.1.path=C\:\\Program Files\\Java\\jre1.5.0_03\\bin\\javaw.exe
deployment.javaws.jre.0.osarch=x86
deployment.javaws.jre.1.product=1.5.0_03
deployment.javaws.jre.0.location=http\://java.sun.com/products/autodl/j2se
deployment.javaws.jre.0.enabled=false
#Java Plugin jre's
#Thu Jan 19 18:19:20 CST 2006
deployment.javapi.jre.1.5.0_03.path=C\:\\Program Files\\Java\\jre1.5.0_03
deployment.javapi.jre.1.5.0_05.osname=Windows
deployment.javapi.jre.1.5.0_03.osname=Windows
deployment.javapi.jre.1.5.0_05.args=
deployment.javapi.jre.1.5.0_05.osarch=x86
deployment.javapi.jre.1.5.0_03.osarch=x86
deployment.javapi.jre.1.5.0_03.args=
deployment.javapi.jre.1.5.0_05.path=C\:\\Program Files\\Java\\jre1.5.0_05
I deleted all the deployment.javaws.jre.1.xxxxx and deployment.javapi.jre.1.5.0_03.xxxxx lines and re-launched java web start.Everything worked fine from then on.
As an aside, I noticed that after I re-launched java web start, the deployment.properties file was automatically updated to what's shown below (the vsn 3 lines were added back but in different order):
#deployment.properties
#Thu Jan 19 19:34:07 CST 2006
deployment.javaws.splash.index=C\:\\Documents and Settings\\<username>\\Application Data\\Sun\\Java\\Deployment\\cache\\javaws\\splash\\splash.xml
deployment.version=1.5.0
deployment.browser.path=C\:\\Program Files\\Internet Explorer\\iexplore.exe
#Java Web Start jre's
#Thu Jan 19 19:34:07 CST 2006
deployment.javaws.jre.1.registered=true
deployment.javaws.jre.1.osname=Windows
deployment.javaws.jre.0.platform=1.5
deployment.javaws.jre.0.registered=true
deployment.javaws.jre.1.enabled=true
deployment.javaws.jre.1.location=http\://java.sun.com/products/autodl/j2se
deployment.javaws.jre.0.path=C\:\\Program Files\\Java\\jre1.5.0_05\\bin\\javaw.exe
deployment.javaws.jre.0.product=1.5.0_05
deployment.javaws.jre.1.osarch=x86
deployment.javaws.jre.1.path=C\:\\Program Files\\Java\\jre1.5.0_03\\bin\\javaw.exe
deployment.javaws.jre.1.platform=1.5
deployment.javaws.jre.0.osarch=x86
deployment.javaws.jre.1.product=1.5.0_03
deployment.javaws.jre.0.location=http\://java.sun.com/products/autodl/j2se
deployment.javaws.jre.0.enabled=false
#Java Plugin jre's
#Thu Jan 19 19:34:07 CST 2006
deployment.javapi.jre.1.5.0_03.path=C\:\\Program Files\\Java\\jre1.5.0_03
deployment.javapi.jre.1.5.0_05.osname=Windows
deployment.javapi.jre.1.5.0_03.osname=Windows
deployment.javapi.jre.1.5.0_05.args=
deployment.javapi.jre.1.5.0_05.osarch=x86
deployment.javapi.jre.1.5.0_03.osarch=x86
deployment.javapi.jre.1.5.0_03.args=
deployment.javapi.jre.1.5.0_05.path=C\:\\Program Files\\Java\\jre1.5.0_05
#11; Sun, 15 Jul 2007 17:50:00 GMT

- Best way is to uninstall all the java releted programs using add/remove programs (control panel) and clean the folders where java was insatlled and reinstall.....I had the same problem and this worked fine for me.#12; Sun, 15 Jul 2007 17:50:00 GMT

This solution helped me in resolving my issue. I used to get "Bad installation. No JRE found in configuration file" error and my support desk confirmed that my hard disk needs to be formatted and OS (Windows XP Pro) should reinstalled to get rid of the problem. I don't want to do that as it takes lot of time to reinstall all my softwares and applications. I started searching and found this website. I tried to apply the solution mentioned here. I have modified/added "C:\Documents and Settings\<user>\Application Data\Sun\Java\Deployment\deployment.properties" file, which was actually 0 bites at that time. I also made sure that my "path" and "classpath" variables set to correct java (jre) folder. I restarted my machine and amazingly it started working ! It automatically modified my deployment.properties file afterwards. Thanks a lot for all your views which helped in resolving the issue which is stopping me to run all Java related tools. Thanks again!
**** Uninstalling all JAVA related components didn't help me. I have uninstalled everything. but it was still throwing that error. Only properties file change, environment variable setting helped to get rid of the problem. :-)
Message was edited by:
SankarSR
#13; Sun, 15 Jul 2007 17:50:00 GMT