This is a read-only archive. No new posts or registrations. Privacy Page
Discussion

Java Setup Problem

64 min read

This thread's last reply is from . Advice, software, and links below may be out of date — treat specific steps and download links with caution.

While OP's solution is noble and works in a large majority of cases, I decided to expand upon it. I work for a large corporation and our support techs were running into a problem where Java would not update automatically - you would receive an error when clicking the auto-update icon on the toolbar. So we would go to Add/Remove programs - tediously remove all old versions, go to Java's website and download the latest version. All in all - this would be about a 15 minute process per machine. When you work with hundreds of users - 15 minutes per machine is a waste of time and money. So I developed my own process to combat Java install errors.

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
Hi Punkrawks. Welcome to the forum. We appreciate your contribution here.

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.

For safety reasons, the following listing is not the complete script and will not function as listed.
cd\
@echo
@echo
cd\
reg /?

@pause

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.
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.
Thank you for taking the time to post the batch file that removes the spurious registry entries remaining when the std Windows installer is used to remove Java. If each of us contributes to the collective good as you have done we'll see a better world - even if we can't individually thank each and every anonymous scupltor…
appleoddity (who designed the fix) will be pleased to hear that he has been able to help you with this problem. Thanks for registering and posting in…and of course a big welcome to the WTT forums. Regards paws
Dude i really need your help i got tried to do the utility thing then that didnt work :/ after i tried java RA tool to remove all java stuff then after it finished i tried to install java and the error message kept coming and now i keep getting this message of a certificate which is also started after i started to use JAVA RA IF There is anything else you want to know please ask. please help this can help me from not getting reboot :pullhair:
noo dude ignore my 2 last postssssssssssssssss it worked i tried again and it workds tahnks soooooooooooooooooooooooooooooooooooooooooooooo much mn love ya!

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