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 newbie question about importing org.* Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "newbie question about importing org.*" Watch "newbie question about importing org.*" New topic

newbie question about importing org.*

Eric Johnson
Ranch Hand

Joined: Apr 30, 2001
Posts: 49
i'm tryin to understand how to import ogr."whatever". in sample code i often see

or other types org imports, but i have no idea what this is about. looking at the ibm xml4j and other apis i see alot of org stuff, org.xml, org.w3c, org.this.that.andTheOtherThing. do i need to add an org folder to my C:\jdk1.3.0_01\lib folder, or add some cryptic line to my autoexec.bat file? how do i do this stuff?!?
please help. i'm sure it's something simple, but like so many things it's not simple until ya look at it in hindsight.
thanx in advance.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Two points of concern here.
One you need to read up on packages, because that is what all this is about. Storing classes is particular packages / subdirectories of the classpath for organizing your classes.
The other thing is that there is a standard out there that says, in order for all of us developers not to trip over each others directory naming conventions, we should all use a unique starting directory. The agreed upon method of doing that is to take your company or organizations WWW id and use the nodes backwards. So all of the internet stuff for is stored on the webservers as
and uses
No chance that way of us accidentaly choosing the same names.

"JavaRanch, where the deer and the Certified play" - David O'Meara
Eric Johnson
Ranch Hand

Joined: Apr 30, 2001
Posts: 49
thank you. i shamefacedly admint i glossed over packages. i'm payin for it now!
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
Download org.xml.something from website and stick it into your classpath.
Then in the program where you want to use it, import org.xml.something.*

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
I agree. Here's the link:
subject: newbie question about importing org.*
It's not a secret anymore!