executing java -jar via classpath vs in the jar file dir

前端 未结 2 847
独厮守ぢ
独厮守ぢ 2021-01-27 06:19

After having used NetBeans to create a Java program call it Addition and then having successfully cleaned and built an Executable Jar File in a folder c:\\Users\\Ben\\Doc\\NetBe

2条回答
  •  时光说笑
    2021-01-27 06:53

    The -classpath argument is ignored when you use the -jar option. See the documentation.

提交回复
热议问题