The error is usually seen with a small window while trying to Launch.
Close all the browser Windows before you perform the below steps:
Solution 1
Click Start
Control Panel
Double click on "Java" Icon (alternatively in Run Window, ten type command: javaws -viewer)
Do you have the Java Control Panel Opened
Click the Network Settings Button
Select Direct connection
Click on apply and OK
Now, try to Launch the Java Application and check the Syntax Error.
Solution 2
The other solution is to uncheck the Use_Automatic_Script_Configuration in Lan Settings in Internet Explorer
Open Internet Explorer
Click on Tools-->Internet Options
Go To Connections TAB
These two solutions should definitely fix/resolve the issue related to compilation error. Hope this helpful!
IT Company in Lucknow