File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes where to deploy jar files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "where to deploy jar files" Watch "where to deploy jar files" New topic

where to deploy jar files

gino mendoza

Joined: Jul 12, 2002
Posts: 20
My question basically is where to put jar files that are for our web application VERSUS where to put jar files for our java batch programs?
Can they be put in the same location?
The 2 sets of jar files are for the same project.
Now, our jar files used in the web app are in the ff directory:
I think this has to do with PATH and context. (I'm not a Unix person).
For the same project, we now have a jar file (BBB.jar) containing java batch programs w/c we will run using cron.
Question: where should I deploy BBB.jar to? should it be in the same directory where the jar files for the web application are?
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
The answer (as it so often is) is "it depends". How are you planning to call your Java "batch" code? Will the line in the cron be something like

or will you actually be calling some native script file eg.

which in turn calls the JVM ?
Either way, you should be able to specify the full path to the jar file in the command, so it doesn't really matter where it lives.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: where to deploy jar files
It's not a secret anymore!