Generating a Jar in Eclipse including external library

前端 未结 3 900
悲哀的现实
悲哀的现实 2020-12-06 20:59

I have a java application I\'ve written in eclipse. It works fine there.

It works fine run from a command line in the directory where I export it to. In that direc

3条回答
  •  生来不讨喜
    2020-12-06 21:43

    You actually should use Ant or Maven for your task, I see no other option. Ant is already packed with eclipse, you only need to install a JDK, not only a JRE.

    Ant is very easy to learn and you can find billions of examples in the internet. With ant you can do exactly what you want.

    Maven is the more up-to-date way to build and package jars and do much more other stuff. Maven also is a good choice for you.

提交回复
热议问题