Showing posts with label native-methods. Show all posts
Showing posts with label native-methods. Show all posts

Monday, May 7, 2012

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.calc). When I try to make the use of the class which is default package, its giving me compile error. Its not able to recognise the class in default package. Where is a problem?