Execute a jar command from a java program
I need to execute a jar command from the java program. And also need, that jar command must execute in the place (path like "C:/Sample/ jar..") where specified. current i am using
String cmd = "cmd /c jar uf " + instalationPath + jarName + " " + param ;
But, i am not able to use the same command for Linux, Solaris and Macintosh, please help to resolve this issue.
Any equivalent command are available?.Kindly Help Me.