kpp's blog

By kpp, history, 9 years ago, In English
package dubstep;

public class Main {

    public static void main(String[] args) {
        System.out.println("test");
    }

}

Any Java code results in Runtime Error. Even if is simple like above.

What's the problem?

  • Vote: I like it
  • +14
  • Vote: I do not like it

| Write comment?
»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Main class must be in the default package (remove package dubstep;)

»
9 years ago, # |
  Vote: I like it +3 Vote: I do not like it