tags:

views:

31

answers:

1

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?

+1  A: 

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.

Andres
what is reflection?
DerNalia
http://en.wikipedia.org/wiki/Reflection_(computer_science) - Basically, it is Java's way of creating instances of classes and calling methods without importing the class. It is a huge pain, and I don't recommend it.
Andres