Eclipse is giving me an error when defining a top level class with the package modifier, the error is :
syntax error on token "package", delete this token.
My code is simpy:
package class MyClass { ... }
My google-foo seems to be broken, any help would be great! Please ask any questions necessary…
Thanks!
When you want to delcare a class as package private, you should omit the modifier. The
packagekeyword is used to define packages.