File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error: cannot be accessed from outside package

 
Rob Deer
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 122
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Replace byin your mysqlconnector.java.
 
Rob Deer
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, thanks! I'm blind as a bat.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic