Home > Mobile >  How do I fix Java Eclipse "Launch Error" when trying to run code?
How do I fix Java Eclipse "Launch Error" when trying to run code?

Time:09-21

Begginer here, Im trying to print a simple "Hello World" statement but everytime I try to run the code I get a "Launch Error" pop-up. I've looked through forums and videos but can't find anything on this error message.

enter image description here

CodePudding user response:

Please check your configured JRE version in eclipse and try to set compilation target to 1.8 and retry.

CodePudding user response:

In Java, a String has to be surrounded by regular (ASCII) quotation marks "...", not by typographic quotation marks “...”.

Invalid:

“Hello World”

Correct:

"Hello World"

CodePudding user response:

Try replacing your current double quotes with these " " quotes. I hope it will work

System.out.println("Hello World");

Try replacing this above line in your workspace and if the error persists, hover on the cross icon on line number 5

And plz specify what does it say after hovering on it....

  • Related