开发者

Trouble running java command line tool inside an automation program

开发者 https://www.devze.com 2023-03-12 09:30 出处:网络
I am using a .bat file, which is reliant on a .jar file. I have java (jdk/jre) installed on my system. If I run a command on this command line api via cmd (e.g. nscmd --help), everything works fine.

I am using a .bat file, which is reliant on a .jar file. I have java (jdk/jre) installed on my system. If I run a command on this command line api via cmd (e.g. nscmd --help), everything works fine.

However, I want to run commands inside another program (Automise www.automise.com). If I do so, with the command line tools in another folder to Java, I get the infamous "java is not a recognised keyword...etc" error. If I put the command line tools in the same folder as Java, I get this error:

Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Program returned code : 1

How can I successfully run the command line tools?The tool is this: http://www.newservers.com/language/en/docume开发者_高级运维ntation/reference-nscmd.html

Thanks


Add the directory java is in to your path variable.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号