" characters I am trying to run a JAR file that ...">

Java- how to run JAR file on windows command line with runtime arguments containing "<" and ">" characters

I am trying to run a JAR file that takes 3 arguments. This is my team -

c:\Arvind_gpd>java -jar icasae.jar c:\Arvind_gpd\inv_new <data> </data>

      

However I am getting this error

< was unexpected at this time.

      

How do I pass the parameters "<data>"

and "</data>"

correctly in my JAR file call so that the execution is successful.

+3


source share


1 answer


Insert arguments in double quotes.



+4


source







All Articles