I have a java batch file consisting of 4 execution steps written for analyzing any Java application. In one of the steps, I'm adding few libs in classpath that are needed for my core application to run. If any of Java applications that I'm analyzing need specific jars, then how do I add them in the classpath mentioned in the batch file. Can this be done using JavaScripts ?
A:
I would say that you should have those core JARs available in the CLASSPATH of the script on start-up. I can't see why you'd want to repeatedly fetch those JARs and put them somewhere again and again.
Put those JARs in a/lib directory as part of your core app, add them to CLASSPATH in the script, and be done with it would be my advice.
duffymo
2009-03-25 09:40:19
I'll be adding jars depending on those applications which I'm anayzing. I'll be taking this info from UI and have to include them in classpath
2009-03-25 09:53:03
"batch job" usually means no UI to me. I'm sure other people reading your question will be equally confused.
duffymo
2009-03-25 09:55:23
UI is developed to give input application code, any external libs etc. once these parameters are given, then I run the batch application
2009-03-25 10:46:11