Running Java jar programs

Submitted by code_admin on Wed, 07/25/2018 - 10:32

Batch file/bash script to run java jar files:

Linux

  1. java -cp MainJAR.jar:IC_SVN_ProdScan.jar ic.ac.uk.svn_utilities.prodscan.mainApp PARAM1 PARAM2 ETC

Windows

Same but use ; rather than :

Run class files mixed in

If class filles are in this directory you can include the current directory in cp:

  1. "java" -cp %RJM_CMN%;. Main

Tags

RJM Article Type
Quick Reference