default-package

How to access java-classes in the default-package?

I'm working now together with others in a grails project. I have to write some Java-classes. But I need access to an searchable object created with groovy. It seems, that this object has to be placed in the default-package. My question is: Exists a way to access this object in the default-package from a Java-class in a named package? ...

How to import a class from default package

Possible Duplicate: How to access java-classes in the default-package? I am using Eclipse 3.5 and I have created a project with some package structure along with the default package. I have one class in default package - Calculations.java and I want to make the use of that class in any of the package (for instance in com.company.c...

What is the default package in which my classes are put if I don't specify it?

Let's assume I have a file named Main.java with the following code: public class Main { public static void main(String[] args) { System.out.println("Hello world"); } } Is it put in a specific package, in (maybe?) an unnamed package? Thanks ...