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.
- 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.