How to combine library with my jar?

前端 未结 8 837
再見小時候
再見小時候 2020-12-01 17:38

Ok so i wrote a program that makes use of a 3rd party open source library and i want to package it with my program in a single jar. I\'m using netbeans 6.8 and everything I\

相关标签:
8条回答
  • 2020-12-01 18:23

    If there are no licencing issues then the most preffered way is to unjar the actual jar and rejar it with your class files in it, to a new jar.

    You can simply use the jar cmd itself for this, no big deal!!

    0 讨论(0)
  • 2020-12-01 18:24

    To include another jar in your jar, you might find jarjar useful.

    Executable jars just have a class defined as 'Main', if I'm not mistaken. This may be useful.

    0 讨论(0)
提交回复
热议问题