This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.
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 www.eds.com is stored on the webservers as com.eds.whatevergroup.whateverapp.whatevertype and www.xml.org uses org.xml.etc No chance that way of us accidentaly choosing the same names.
"JavaRanch, where the deer and the Certified play" - David O'Meara
Joined: Apr 30, 2001
thank you. i shamefacedly admint i glossed over packages. i'm payin for it now!