Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jar's directly in IDE (eclipse or netbeans)

 
Turian Vlad
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Turian Vlad
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic