Launch4j
Click here to load reader
-
Upload
sukjin-yun -
Category
Technology
-
view
266 -
download
1
description
Transcript of Launch4j
Java Exe로 deploy하기 With launch4j
Target Audience
how to make exe file from Jar
Runnable Jar를 이용해서 Exe파일을 만들고 싶은 사람
Pre require
Maven , Runnable Jar
모르는데요.
연관 게시물
http://www.slideshare.net/SukjinYun1/20130201-java-deploy
http://www.slideshare.net/SukjinYun1/ss-22699968
Launch4j
Java로 작업한 Jar 결과물을
Exe로 변환해주는 프로그램
http://launch4j.sourceforge.net/
Launch4j 사용법
단순히 third party로 사용하는 건 검색하세요
오늘 하려는 건 lanuch4j를 Maven을 이용해서
통합하여 실행
설치는요?
‘다음 신공’
Maven Launch4j plugin 저장소설정
<pluginRepository> <id>akathist-repository</id> <name>Akathist Repository</name> <url>http://www.9stmaryrd.com/maven</url> </pluginRepository>
plugin 설정
<groupId>com.akathist.maven.plugins.launch4j</groupId>
<artifactId>launch4j-maven-plugin</artifactId>
plugin 설정2 Execution
<id>l4j-clui</id>
<phase>package</phase>
<goals><goal>launch4j</goal></goals>
<configuration>
<headerType>console</headerType>
<outfile>target/main.exe</outfile>
<jar>target/main.jar</jar>
<errTitle>encc</errTitle>
<classPath>
<mainClass>jin.net.Main</mainClass>
<addDependencies>false</addDependencies>
<preCp>anything</preCp>
</classPath>
gui라면 console 대신 GUI
최종파일명
Main메소드가 있는 파일
plugin 설정3
<jre>
<minVersion>1.6.0</minVersion>
</jre>
<versionInfo>
<fileVersion>1.2.3.4</fileVersion>
<txtFileVersion>txt file version?</txtFileVersion>
<fileDescription>a description</fileDescription>
<copyright>my copyright</copyright>
<productVersion>4.3.2.1</productVersion>
<txtProductVersion>txt product version</txtProductVersion>
<productName>E-N-C-C</productName>
<internalName>ccne</internalName>
<originalFilename>main.exe</originalFilename>
</versionInfo>
</configuration>
</execution>
</executions>
최소 jre버전
파일명
생성
package 단계에
launch4j 플러그인이 실행된다.
plugin에서
phase를 package로 했으니까
Assembly plugin 설정
이 설정이 포함되어있어야 합니다.
실행결과
To Other Time
To Other place
To Other Us