954,554 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to 1include 100 jar files in classpath

I am executing a project that have 100 jar file attached to it

I am able to execute it in Eclipse but i want to run it from batch file but the problem is that i am not able to set class path , whereas in eclipse we can direclty build classpath

so can anybody help m,e how i can include so many files together in classpath

I gave the path of folder as classpath but it didnt work for me

staneja
Junior Poster in Training
64 posts since Dec 2006
Reputation Points: 10
Solved Threads: 2
 

lots of typing ahead :)

You need to include each jar individually on the classpath, or put the names into the MANIFEST for your own jar (see the specification of the MANIFEST file and the documentation of the jar command on how to do that)

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

> so can anybody help m,e how i can include so many files together in classpath
Use a build tool like Ant or Maven to ease this task. Using a build tool has become a d-facto standard for compiling / building / deploying your application and you should definitely go that way if you plan on surviving in a professional setting.

Build files are platform agnostic unlike shell scripts which are platform specific and can be run easily with minimalistic modifications. Google for 'Ant tutorial' to get started.

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You