aspose file tools*
The moose likes Beginning Java and the fly likes error: cannot be accessed from outside package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "error: cannot be accessed from outside package" Watch "error: cannot be accessed from outside package" New topic
Author

error: cannot be accessed from outside package

Rob Deer
Greenhorn

Joined: Jan 10, 2005
Posts: 17
I have this code that's giving me error.

/home/dev/WEB-INF/classes/db/mysqlconnector.java



when i compile this below,
/home/dev/WEB-INF/test.java
it gives me the error
mysqlconnector() is not public in db.mysqlconnector; cannot be accessed from outside package
mysqlconnector c = new mysqlconnector();


test.java


Any ideas on what's wrong?
[ February 10, 2007: Message edited by: Ester Wong ]
Anton Uwe
Ranch Hand

Joined: Jan 10, 2007
Posts: 122
Replace byin your mysqlconnector.java.
Rob Deer
Greenhorn

Joined: Jan 10, 2005
Posts: 17
Ah, thanks! I'm blind as a bat.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: error: cannot be accessed from outside package