944,117 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Marked Solved
  • Views: 2169
  • Java RSS
Dec 3rd, 2007
0

How to 1include 100 jar files in classpath

Expand Post »
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
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
staneja is offline Offline
63 posts
since Dec 2006
Dec 3rd, 2007
0

Re: How to 1include 100 jar files in classpath

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)
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Dec 3rd, 2007
0

Re: How to 1include 100 jar files in classpath

> 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.
Super Moderator
Featured Poster
Reputation Points: 3241
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,873 posts
since Jun 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: making a counter using a two dimmensional array
Next Thread in Java Forum Timeline: very simple code





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC