NullVoxPopuli
NullVoxPopuli

Reputation: 65083

Eclipse + Java: How do I import classes from the default package?

I have classes in an Entities package, but I still want to run import stuff that is in the default package... how do I do that?

Upvotes: 1

Views: 3151

Answers (1)

Andres
Andres

Reputation: 5187

You don't.

Sorry.

Though I'm quoting the other answer, you can check out the ORACLE reference that says that that is intended behaviour.

I recommend moving your stuff to a named package.

If you absolutely cannot re-factor, you can try using reflection to access it. Again, check the answer linked above.

Upvotes: 1

Related Questions