Microsoft JScript Compilation Error: Expected ‘;’

by Joe Kraynak on May 4, 2009

JScript Compilation Error: Expected ';'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:

  1. Print these instructions before you start.
  2. Run your browser and go to java.sun.com/products/archive/j2se/6u7/index.html
  3. Under JRE 6u7, click Download JRE.
  4. Select your platform, click the box to pledge your agreement to the terms of use, and click Continue, as shown below.
  5. 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.)
  6. 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.)
  7. Close any and all browser windows (yes, this one included).
  8. Click Start, Control Panel.
  9. Double-click Add/Remove Programs.
  10. 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.)
  11. 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.
  12. Save any documents you currently have open and exit all programs.
  13. 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 }

WJ August 10, 2009 at 10:25 am

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

Jack Noel November 18, 2009 at 2:37 pm

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!

Joe November 19, 2009 at 3:26 am

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.

Jack Noel November 19, 2009 at 10:52 am

Joe,

Thanks for the advice. Have a Great Weekend and Happy Thanksgiving.

joe January 23, 2010 at 8:03 pm

Thanks for the help…..I finally got rid of the problem (expected ‘.’) I was having….once again THANK YOU!
joe

Amy Li February 1, 2010 at 11:41 am

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?

Joe February 1, 2010 at 11:56 am

Hi, Amy–

Yes, you can delete the installation file and folder. Glad it helped!

Leave a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Previous post:

Next post: