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.
Looking for some clarification. I've begun working on OOP1 and the purpose as we all know is: To learn how to use someone else's classes, how to integrate a jar file into your program. Now the download we're asked to pick up is JavaRanchCommon.zip. I understand that it asks me to put the zip in my classpath. (Which I am ineffectively doing). However, does this mean that this zip file is in effect considered a jar or do I have to convert it somehow. Thanks for any assistance.
There's no need to do anything to the .zip file. Your program will automatically access the class it wants. It doesn't matter whether the file's in a .jar or .zip file. As long as you've got the classpath part down, you're good to go. rick
To my knowledge a *.jar file uses the same compressing technique as a *.zip file. They are (more or less) interchangable. The jar program includes a meta-inf directory (with...), which a 'zipper' doesn't. Using a zipper you need to use the feature to include path information (for packages). So for java-programs I use jar and very often make the jar file with extension *.zip to look automatically with those nice zip-programs to the content. (I love this smiley) Peter