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 Java Beans and Packages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java Beans and Packages" Watch "Java Beans and Packages" New topic

Java Beans and Packages

Jake Chinn

Joined: Apr 22, 2001
Posts: 4
Hello list,
Can anyone give me an example of how to use packages in relation to the beanbox? The Sun tutorial isn't very clear on this point and it seems like no matter what folder I put my class file in, the beanbox can't find it if the class has a package statement in it.
My package statement is "package acme.beans;".
How should my folders be setup relative to the beanbox folder, itself? Where should my class file(s) be? Where should my jar file be?
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Since I have not a clue which beanbox that you are using, and at any rate it is just a specialized IDE, I will move this thread to that forum.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: Java Beans and Packages
jQuery in Action, 3rd edition