Java won't run | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Java won't run

class MyClass { public static void main(String[ ] args) { System.out.println("Hey I'm Eunice"); } } Now that's my code but it wont run coz every time i go to Run As (on Eclipse) it it tells me none applicable. What could be the issue?

15th Dec 2016, 5:29 PM
Eunice N
Eunice N - avatar
3 Answers
+ 2
" right click on the project folder in Package Explorer > Properties > Java Compiler then check the Enable project specific settings and then Change the settings below to the compiler compliance level of 1.5 or higher in order for this code above to work. " -Stackoverflow http://stackoverflow.com/questions/24218802/eclipse-java-printf-issue-printstream-is-not-applicable
15th Dec 2016, 5:53 PM
Uran Kajtazaj
Uran Kajtazaj - avatar
+ 1
Click on the Myclass in the class browser window in eclipse then click run
15th Dec 2016, 5:52 PM
Agaba Ivan
Agaba Ivan - avatar
+ 1
Thank you. It worked.
15th Dec 2016, 6:42 PM
Eunice N
Eunice N - avatar