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

Recommended Answers

All 2 Replies

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)

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.