Eclipse + Java: How do I import classes from the default package?
I have classes in an Ent开发者_如何学运维ities package, but I still want to run import stuff that is in the default package... how do I do that?
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.
精彩评论