0

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

3
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by ~s.o.s~
0

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)

0

> 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.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.