How to get rid of the anoying syntax error popup message when using Internet Explorer with Java so your mother-in-law will stop buggin’ you about it

Quite some time ago I encountered this error the first time, to be honest i can not even remember when it was. But I do know it was Windows 7 and Internet Explorer fully updated, together with the current Java runtime environment that gave me the problem, but I am getting ahead of myself.

Problem description:

  • Using Internet Explorer, Windows 7 and Java Runtime Environment – all updated to latest editions on completely clean installations
  • On all webpages loading Java the following error message appears twice (x2, two times, 2 times).
    Title: “Microsoft JScript compilation er…”.
    Error message: “Syntax error”.

Extra bonus information:

  • I have experienced this problem on Windows 7 with and without service packs, Internet Explorer 8 and 9
  • Usually the problem appears from “birth” with default settings
  • Settings in Internet Explorer for showing errors, debugging scripts, etc. are all set to default i.e. not to anoy the user
  • The error always comes two times and has absolutely no usefull information
  • The Java application works fine without any errors, the only error is the actual message about the error and yes it is realy anoying

So to continue… I trawled thru endless suggestions for how to fix this problem the first time I had the problem and I believe I was at page 3 in Google before I found something that finally worked. The solution is incredibly simple and apparently seems to have absolutely nothing to do with the problem or Java. But what realy anoyed me was that I later had this problem on my new IBM laptop, with everything completely fresh installed, and I could not remember the fix! and again it took me forever to find the solution. So this time I am writing a blog about it, so I can find the solution next time I forget it. I also assume the problem comes due to Java trying to use this setting but fails – I have no idea who has the actual problem, Windows, IE or Java, but it puzzles me the problem still exists this long after I first saw it.


  • In Internet Explorer -> Tools -> Internet Options -> Connections -> LAN Settings
  • Clear the checkbox in “Automatically detect settings”

Thats it!

51 Responses to “How to get rid of the anoying syntax error popup message when using Internet Explorer with Java so your mother-in-law will stop buggin’ you about it”

  • Roy:

    Thanks :):) It works.

  • Meeester P:

    OMG! What on earth…?
    Thank you! It’s so easy when you know how…
    Stoopid computers.

  • Norberto:

    I thank you very much for yuor help,it really was very annoing to see that errror every time I was using internet explorer with java aplication.thank you so much,keep up.

  • Coincident:

    I’ve found this “fix” elsewhere before, but it did NOT fix the problem.
    I’ve done that, but the messages keep appearing for no reason.

    I don’t even use IE at all, just firefox.
    I still get this problem both in Win XP and Win 7 – even when firefox is closed.
    Uninstalling Java solves the problem, but obviously I need Java.

    What’s the true fix to this problem?

  • Sole:

    I am not sure what you mean about the true fix.
    This fix works for me on several computers, so if it does not for you, then probally you have another problem.
    This problem seems to be Java using the computers general proxy settings and having problems with a setting here.

  • Nadi:

    Thank you very much!
    Had this problem on my brand new HP laptop with Win 7 bought yesterday.
    It was fricking me out for a whole day.
    Thanks a lot.

  • Sole:

    I had to endure more than a day, but happy it helped 🙂

  • Pat Kirk:

    Thank you sir….i have tried everything and your solution worked…ty from the bottom of my heart…those syntax error boxes were so annoying

  • Pat:

    Thank you thank you thank you!!!

  • Bob:

    Thank you!!!!!!!!!!!!!!!!!!!!!!!!

  • roger:

    Thank you- works like a charm.

  • Gavin:

    Fantastic, thank you very much for publishing this blog, this issue was driving me insane!

  • Bill C.:

    Brilliant sir! It has been annoying my wife and me for ages. Thankyou!

  • Thwim:

    Worked for me. Spent days finding this one.

  • Hemant:

    Thanks you very much. It has resolved the problem.

  • Anonymous:

    Thanks a ton it solved the syntax error…

  • The singer:

    Thanks…it worked.

  • muthuraj:

    Thank you very much for your effort

  • Dexter Morgan:

    This syntax problem has me wanting to KILL. Nothing new but thought I would handle this problem in less laptop serial killer type way. It worked on my laptop and desktop. Thanks my friend. – Dex

  • bb1877:

    Thanks just fixed a user during a remote session with a quick Google search and your blog. Will become of our internal KB.

  • Shirley:

    I have Java script syntax error after having a 3-1 printer installed. I use Firefox. Can you help me with that?

  • Sole:

    Sorry I won’t be able to help with that.

  • Monica:

    Thanks very much indeed. It worked – you are my Hero Of This Week. Seems it doesn’t help Firefox, but Internet Explorer works perfectly now. Really, for a while I began to wonder whether it was time to check in at a mental hospital – the pop-up window & the tune was getting on my nerves so much it almost drove me insane. Again, thanks a lot, Sole.

  • Jay:

    The JScript syntax error started appearing for me (when opening Firefox) after the addition of the MediaHint plugin, which adds its own proxy URL. One solution here is to disable the plugin until you need it.

  • Dheeraj:

    Thank you, thank you & thank you!!!

  • guido:

    Thank you, thank you, thank you. x 1000

  • Tom Kolakowski:

    Thanks… this has been driving me crazy for months and this was the first tip that actually panned out!

  • Wes:

    Thank you very much, you rock!!!!

  • Eric:

    Thanks to Jay on 30 Jan 2013 for the suggestion about this error when using Firefox, with the problem being caused by Media Hint.

    And thanks to the OP for even writing about this. Almost all of the google results for searches about this problem seem to relate to people who are writing code.

  • Jessica:

    Yes! Thank you for the simple & clear instructions. No kidding about “seems to have “absolutely nothing to do with the problem or Java!”

  • martin:

    Thanks, did work like a charm :o)

  • drake:

    plx hw do i remove dis error from my mozilla tnks

  • Sheen:

    You’re a star!

  • Mark:

    This is not a fix, this is just a workaround. There is still an underlying issue causing this.

  • Sorin:

    It works , thanks!!

  • Daryl Mosely:

    I agree. This is only a workaround – NOT A FIX. This approach of – just turn it off – is not right. So, your computer has an error? Power it off. There! No more error! Sorry, Microsquash, you missed the target and hit the tree.

  • Mark:


    I actually spent a week working on this issue because it was affecting a new disaster recovery build out. After all sorts of testing I was able to narrow it down to an odd network/AD/DNS issue. Check your DNS resolutions and DNS suffix search order when working on this issue.

  • Jim:

    Thanks man! You saved my marriage!

  • altamonte:

    FireFox /Mozilla solution;

    Go to Options, then select the Network tab. Selection “Connection” Settings button. This places you on the page where proxies are set.

    Select the radio button with “No Proxy Settings”.


    This entire problem is one with proxies. You can see if you have proxies set overall in Windows 7 in the Control Panel >>> Internet Options >>> Connections >>> LAN Settings.

    If you have proxies in a work environment, you might try to bypass proxy usage for the web site accessing the Java content that has this symptom.

  • annelise:

    thank you!

  • mgillis:

    Thank you so very much

  • Did not work for me. Still open to suggestion. This Syntax error is ANNOYING. I have windows 8

  • Allen:

    Thanks for the information. It didn’t work for me. I’ve tried several things and nothing has solved it yet.

  • jon:

    Thanks mate. Appreciate your effort.

  • trickerpat:

    Thank you sooooo much, this was driving me crazy, but no more, oh, did I say ‘thanks’.

  • Larry:

    My OS is windows 10 and IE is my default browser. The settings you suggest are the default settings on my laptop. I still get these Syntax Error messages. Do you have any other suggestions ?

  • Sole:

    sorry no

  • Larry:

    This fix is not working on my laptop with windows 10 and IE 11. Does anyone out there have another solution?

  • Deb:

    Worked like a charm, thank you so much!

Leave a Reply