If the Microsoft JScript Compilation Error Expected ‘;’ dialog box has popped up on your screen, don’t just cross your fingers and hope it goes away. It won’t. Even if you can perform the Java task you’re trying to complete, that nagging box is likely to pop up several more times during the process, requiring you to click the OK button every time it does.
How do you get it to go away? The only way I know how is to purge Java from your system and then reinstall it. Here’s how you do it in Windows XP:
- Print these instructions before you start.
- Run your browser and go to java.sun.com/products/archive/j2se/6u7/index.html
- Under JRE 6u7, click Download JRE.
- Select your platform, click the box to pledge your agreement to the terms of use, and click Continue, as shown below.
- Click the link jre-6u7-windows-i586-p.exe. Don’t click the Windows Offline Installation checkbox; click the actual link for the file. (See below.)
- Click the Save button, as shown below, and save the file to a folder on your computer so you can find it later. (Don’t run the file. Just save it so you can run it later.)
- Close any and all browser windows (yes, this one included).
- Click Start, Control Panel.
- Double-click Add/Remove Programs.
- Click anything that says Java on it (like Sun Java or Java JRE) and click Remove. (You may have to do this two or more times to remove any Java updates.)
- Change to the folder in which you saved the file jre-6u7-windows-i586-p.exe, double-click the file, and follow the installation instructions.
- Save any documents you currently have open and exit all programs.
- Click Start, Turn Off Computer, and then click the Restart button.




You can delete the jre-6u7-windows-i586-p.exe later to keep it from cluttering your hard drive.







{ 7 comments… read them below or add one }
Thanks for posting the steps to resolve this problem!
If there are other IT support folks out there wondering more about why this JScript error happens, there is currently an open bug in the Sun JRE [since JRE 1.6.0_10] that is related to Proxy PAC files.
See http://bugs.sun.com/view_bug.do?bug_id=6780968 for more details
Great Job, easy to follow instructions. Keep up the Good Work.
I’m Getting the same message “Microsoft JScript Compiiation error”
Will These instructions work for Vista Home Premium, Service Pack 1?
There is a link…Upgrade Windows Vista…
I bought this Laptop about 8 weeks ago and just received a disk for Windows 7. Should I upgrade Vista or Load Windows 7?
Thanks for any help!
Hi, Jack–
I would think the instructions would work on Vista, as well.
I haven’t done much with Windows 7, but I’ve read good things about it.
Before upgrading to Windows 7, download and run Windows 7 Upgrade Advisor to make sure your PC can run it.
Joe,
Thanks for the advice. Have a Great Weekend and Happy Thanksgiving.
Thanks for the help…..I finally got rid of the problem (expected ‘.’) I was having….once again THANK YOU!
joe
Thank you very much for your help. I also encountered the same problem today. By following your instructions which are very clear and detailed, I got the problem fixed and the error message disappeared. I am relieved. Thank you. Can I delete the folder that saves the file jre-6u7-windows-i586-p.exe Now?
Hi, Amy–
Yes, you can delete the installation file and folder. Glad it helped!