Launch4J - how to attach dependent jars to generated exe

前端 未结 7 960
深忆病人
深忆病人 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:15

    In launch4j go to the classpath tab. Tick the custom classpath field. In the edit field, enter the full path of each jar you want included and press accept. When finished type just the name of the main class into the separate field (ie MyProg). All the jars will now be included in the exe.

    PS I have all the jars in the same directory. I'm using version 3.12

提交回复
热议问题