I have a jar file named main.jar with the Manifest entry as:
Main-Class : tss.Report
Class-Path : lib/Classes12.jar lib/xlist.jar lib/axis2.jar
now I have the lib folder in the same directory as that of the jar file and I am able to run the jar also from command prompt by using "java -jar" command.
But whenever I place the jar with the lib folder to my server and try to invoke the jar using same command from linux environment I get an error message saying something like :
Cannot access the jar file because it is corrupt or in bad format.
I have a clientclasses folder in the server evenif I tried by placing my main.jar in the folder that has the clientclasses and changed the Manifest file accordingly as :
Main-Class : tss.Report
Class-Path : clientclasses/Classes12.jar clientclasses/xlist.jar clientclasses/axis2.jar
but with no success.
Alternate method I thought of is:
coding my program in the application server it self and Scheduling the run of my program from the application set to run in application server.
Can I directly run my application from the application server .If yes then in which file of the existing application in the server I have to schedule the run of my program.In other words which is the file or what is the method that I can use to run my application.
Kindly help me to know how to run a jar having more than one dependent jars from server.