我需要从本地文件中读取一些属性etc/myconfig-config/
文件夹。我需要在命令行中给出这个文件路径。我已经给出了如下所述。但出现错误,显示如下
Error: Could not find or load main class test-tool.jar.
给出的命令是
java -cp -DconfigDir=/etc/myconfig-config/ test-tool.jar
service.ScriptGenerator $clinic_count $client_files_count
有人可以帮我解决这个问题吗?
thanks
尝试给出以下命令,
java -DconfigDir=/etc/myconfig-config/ -cp test-tool.jar service.ScriptGenerator $clinic_count $client_files_count
请注意,应从代码中访问给定的参数,如下所示:
System.getProperty("configDir")
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)