简体   繁体   English

java-如何在Windows命令行中运行JAR文件,该命令行的运行时参数包含“<”和“>”字符

[英]java- how to run JAR file in Windows command line which has run time arguments containing “<” and “>” chars

I am trying to run a JAR file that accepts 3 arguments. 我正在尝试运行一个接受3个参数的JAR文件。 This is my command- 这是我的命令 -

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

However I am getting this error0 但是我得到了这个错误0

< was unexpected at this time.

How do I pass the parameters "<data>" and "</data>" correctly in my invocation of the JAR file so that the execution is successful. 如何在调用JAR文件时正确传递参数"<data>""</data>" ,以便执行成功。

用双引号括起参数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 java-jar文件不直接在Windows中运行,而是通过命令提示符运行 - java- jar file does not run directly in windows, but runs through command prompt 如何在命令promt中运行带有参数和类路径的Java jar文件 - How to run a java jar file with arguments and classpath in command promt Maven:如何从传递 arguments 的命令行运行 a.java 文件 - Maven: How to run a .java file from command line passing arguments 使用参数运行jar文件,而不必使用命令行 - Run jar file with arguments without having to use command line java-如何使用一些用户定义的参数部署位于远程计算机上的jar文件 - java- how to deploy a jar file which is on a remote machine-with some user defined arguments Java Jar 文件主类在从命令行运行时运行,而不是从 Windows 批处理文件运行 - Java Jar file main class run when runs from command line, but not from Windows batch file 在Windows命令行上的jar文件的子包中运行类 - Run a class in a sub package in a jar file on Windows command line Java .jar文件与命令行和文件资源管理器的运行方式不同 - Java .jar file Run Differently from Command Line and File Explorer 如何在 windows 的命令行中运行此 java class? - How to run this java class in command line in windows? 无法使用外部jar文件在远程命令行中运行Java - Failed to run java in remote command line with external jar file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM