Launch4J - how to attach dependent jars to generated exe

前端 未结 7 936
深忆病人
深忆病人 2020-11-28 13:43

I have a simple java project, which requires external jars. I build this with netbeans and after Clean and Build command, I can find in dist directory the following structur

7条回答
  •  再見小時候
    2020-11-28 14:29

    When you are converting your .jar file

    1. Go to classpath tab
    2. Check custom classpath
    3. On main class select your .jar from your dist folder after building the project
    4. On the classpath textarea add your libraries, you add them right below that textarea writting the full path to the lib (of course including the lib, ie "C:\folder\lib\file.jar")

提交回复
热议问题