java -cp %EPM_JAVA_CLASSPATH% -DEPM_ORACLE_INSTANCE=%1 -DHFM_CLUSTER=%2 -DHFM_APPLICATION=%3 runConsoltesting %4 %5 %6 %7
When i try to access 5th argument it shows:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5
at runConsoltesting.main(runConsoltesting.java:42)
It takes only arguments upto class name
%arguments.%4 %5 %6 %7(if nonempty) will beargs[0] args[1] args[2] args[3]respectively. The-Dname=valuebefore the classname are arguments and more exactly options to the JVM but not to the main class.