Java not working
shortymc opened this issue · comments
shortymc commented
Hello
Thanks for your great works
First javac was not detected
after installing
gcj-6-jdk
i tried
public class HelloWorld {
public static void main(String[] args) {
// Prints "Hello, World" to the terminal window.
System.out.println("Hello, World");
}
}
and i got :
Main.java:1: error: The public type HelloWorld must be defined in its own file
public class HelloWorld {
^^^^^^^^^^
1 problem (1 error)
Compiled And Executed In: 0.00 s
Verdict : AC
Thanks for your help
Best Regards