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.
I'm sorry for this basic question....
I built a jar file , and now I want to add it to another java project.
I'm using Eclipse. I added that jar to the project and added it to the class path.
How can I call it's methods from my new class in the new project ?
Without knowing more about how you're doing this it'll be hard to help.
If the library is included in the project's path then importing a class and using it will work fine: could you include the relevant portions of source (the import, how you're trying to use the import) and the specific error you get?
Joined: Nov 10, 2009
I added again the jar to the classpath and now it looks fine.
I don't know what is different...