AJAX Forums

How to add directory in the classpath to run java program?

This is a discussion on How to add directory in the classpath to run java program? within the JavaScript forums, part of the Beginners AJAX category; I have bunch of jar files which needs to be included in the classpath to run a java program. Instead of including them one by one, I want to include ...


Go Back   AJAX Forums > Beginners AJAX > JavaScript

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Old 04-03-2007, 10:45 AM   #1 (permalink)
Junior Member
 
Join Date: Apr 2007
Posts: 1
Rep Power: 0 Curious George is on a distinguished road
How to add directory in the classpath to run java program?

I have bunch of jar files which needs to be included in the classpath to run a java program. Instead of including them one by one, I want to include the whole directory so that all the jar files in that directory are in the path. I already tried to include directory and dir\* or dir\*.jar, but it didn't work. For example, if I have java -classpath "dir1\x.jar;dir1\x1.jar;dir1\x2.jar;dir2\y.jar " a.b.c.MainI tried java -classpath "dir1;dir2\y.jar" a.b.c.MainI also tried java -classpath "dir1\*;dir2\y.jar" a.b.c.Mainand I also tried java -classpath "dir1\*.jar;dir2\y.jar" a.b.c.Mainbut, none of them worked. Can someone suggest me on how to include directory (where my intention is to include all the jar files) in the classpath?
__________________
Curious George is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
AJAX Jobs : European web design directory by hawer admin AJAX Freelance Jobs 0 09-13-2008 11:14 AM
AJAX Jobs : Business Directory & Forum by perinius admin AJAX Freelance Jobs 0 09-13-2008 08:51 AM
AJAX Jobs : Topics Directory by ralf206 admin AJAX Freelance Jobs 0 05-23-2008 01:25 AM
how to find file path and infor mation of file using java program in local system.? rajeswa r JavaScript 1 05-21-2007 01:21 AM
can i run my java program as *.exe file Arwind S JavaScript 2 05-05-2007 01:13 AM


All times are GMT -4. The time now is 02:21 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5
Copyright ©2006 - 2008, AJAXwith.com