How to execute jar file with a external dependency using command line on Windows?

后端 未结 2 1443
长发绾君心
长发绾君心 2021-01-21 05:49

I have jar file with manifest in it

    Manifest-Version: 1.0
    Build-Jdk: 1.7.0_67
    Created-By: Apache Maven 3.2.3
    Main-Class: com.company.main.Main
           


        
2条回答
  •  遥遥无期
    2021-01-21 06:32

    "Bad Way"..? You should never include your jar files inside the java directories.. How do you expect the users of your application to use your jar when they are using the standard java..?

    either you can use the command suggested by @tombola82 or you can include the commons-lang jar in your project itself so that you can refer it.

提交回复
热议问题