LDT,
Thank you for the kindness of linking to the OP's successful use of Appleoddity's fine solution.
Much Appreciated.
Doug
Java Setup Problem
64 min read
Copy and paste the following into notepad and create a .bat file out of it (if you don't know how - while saving it, name it fixjava.bat and change the drop down menu from "*.txt" to "all files".)
(.bat File removed pending review and approval)
You are now free to install the latest version of Java - error free. This .bat file will work for all Java versions - past, present, and future.
Takes a 15 minute manual install down to a 2 minute install.
EDIT:
Hi Punkrawks,
Thank you kindly for your thoughtful contribution.
WTT Forums does not allow .bat nor .reg files without prior review of Tech Team.
I'd imagine that you understand the reasoning.
The Forum Rule applies the same to un-reviewed application and utility software.
Our Techs will review and add comment, with hope that your contribution will add to the knowledge and utility of this Topic.
Best Regards
Doug
I did review your batch file and do have a few issues with it.
First, while it may be useful to resolve other errors with Java, this particular thread is for the particular error stated in the first post. And, therefore, if you can resolve the other issues I am going to split this into a new thread.
Second, your batch file has several extras in it that are not needed and I wonder why they are there. This kind of shows some limited knowledge of the batch programming language and what is actually happening here. The following lines are listed as un-needed.
Third, not an issue, but if you are going to echo Deleting Files… you should echo it BEFORE you delete the files, then echo Files Deleted AFTER the files are deleted.For safety reasons, the following listing is not the complete script and will not function as listed.
cd\
@echo
@echo
cd\
reg /?
@pause
Fourth, because you used some of my code, it is actually invalid for a Windows XP system. Windows XP does NOT support the /f switch on the REG command and my script DOES NOT work on Windows XP. This is a known issue, and I have replaced the script with an actual executable file because the batch programming language is so severely limited. The executable has not been made publicly available.
Fifth, because you used my code, it will not work on all versions of java "past, present, and future" - it is only designed to work with Java 6.
Sixth, you can't safely delete the entire Javasoft registry key as you are doing. There are many Java products. Your problem is specifically with the Java Runtime. If you delete the entire JavaSoft folder you'll mess with other programs such as the Java Development Kit, etc. You can also not safely delete the entire Java program folder as this will also destroy other Java products. You can also not assume those products are installed on the C: drive in the Program Files folder. This is a dangerous portion of your script.
In order to endorse the batch file you'll need to address these issues, and then make a more specific post suggesting WHAT errors this batch file will resolve. Again, the batch file in the initial post of this thread is for a specific error. If your batch file is to be useful to others you'll need to list what ERROR it is meant to resolve so that other people can find it with google.
Thanks for the contribution, but we do have some obligation to make sure information provider to our readers is accurate and safe and does what it is intended to do.
Created a universal fix for all versions of Java 6
This problem is confirmed in Windows XP, Windows Vista, and Windows 7.
Because the registry keys that need to be removed are different for each version of Java, I have created a batch file you can download to find and remove the entries automatically.
I just joined the forum to say THANK YOU for this.
Created a universal fix for all versions of Java 6
This problem is confirmed in Windows XP, Windows Vista, and Windows 7.
Because the registry keys that need to be removed are different for each version of Java, I have created a batch file you can download to find and remove the entries automatically.
I just joined the forum to say THANK YOU for this.
Glad it did the trick for you, appleoddity's fix sure has helped a lot of folks.
Incidentally, welcome to the WTT forums, take a while to have a look around, there's plenty here!
Regards
paws