This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
When I install java sdk on my pc, where do the class library files reside?
I'm trying to begin using a java library called lucene. Have downloaded the library but now unsure where it exactly goes. My simple program that expects to use classes from the lucene library shows many java errors in Eclipse such as; "field cannot be resolved to a variable" and "file cannot be resolved to a type" - so I suspect it is not finding the library.
When you download something your browser usually puts it in a downloaded map. Where that map resides is depended of what browser you use or what your settings are. After that you'll have to include the library on the classpath. Otherwise Java can't find it. You can read about the classpath in our faq: HowToSetTheClasspath.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.