File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Packages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Packages" Watch "Packages" New topic



Joined: Sep 18, 2001
Posts: 2
I am unable to access a public class in a default package, from a class inside a specific package.This happens inspite of setting the classpath to the default package class.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
In that case it is likely that you have not named the classpath correctly. What is the directory structure that the public class is in, and show us your classpath.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: Packages
It's not a secret anymore!