aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes jar's directly in IDE (eclipse or netbeans) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "jar Watch "jar New topic
Author

jar's directly in IDE (eclipse or netbeans)

Turian Vlad
Greenhorn

Joined: Oct 17, 2009
Posts: 12
I feel that my question is very moronic but here it is.

I am using Pellet, a java ontology-reasoner (it does more than reasoning but that is not the point here ). The Pellet API consists of a large number of .jar files.
Please tell me a way to put this .jar's directly into eclipse(or netbeans) because adding those jar's to every's project classpath is time consuming and frankly a little frustrating.

Thanks for Your answers,
Vlad

-------------------------------------------------------------------------
"Freedom cannot be bought. Do you the price is small?...do not fool yourselfs.....it will get bigger continuosly till one day the price of freedom will be freedom itself."(Vlad The Impailer)


Freedom cannot be bought! You say the price is small?!... do not fool yourselves... It will get bigger and bigger until one day when the price of freedom will be freedom itself! (Vlad The Impailer)
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

In Eclipse, the additional JAR files are placed into the .classpath file in the project's base directory. Could can always manually (outside of Eclipse using a text editor) copy the contents of the .classpath from an old project to a new project and then in Eclipse do a refresh on the project to pick up the new entries.

If you are using Maven and m2eclipse, you can accomplish a similar thing by, within Eclipse, copying the dependencies form the pom.xml in the old project to the pom.xml in the new project and saving the pom.xml. Or you could create your own archetype that already contains the necessary dependencies and use that to create new projects.


JBoss In Action
Turian Vlad
Greenhorn

Joined: Oct 17, 2009
Posts: 12
Peter Johnson wrote:In Eclipse, the additional JAR files are placed into the .classpath file in the project's base directory. Could can always manually (outside of Eclipse using a text editor) copy the contents of the .classpath from an old project to a new project and then in Eclipse do a refresh on the project to pick up the new entries.

If you are using Maven and m2eclipse, you can accomplish a similar thing by, within Eclipse, copying the dependencies form the pom.xml in the old project to the pom.xml in the new project and saving the pom.xml. Or you could create your own archetype that already contains the necessary dependencies and use that to create new projects.


Thanks Peter. I applied your first idea and it works.
Have a nice day!

Vlad
-------------------------------------------------------------------------
"Freedom cannot be bought. Do you say the price is small?...do not fool yourselves.....it will get bigger continously till one day the price of freedom will be freedom itself."(Vlad The Impailer)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jar's directly in IDE (eclipse or netbeans)