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

More Related Content

PDF
Virtual Development Environment Setting
PPTX
JavaInstall&Basic
PPTX
Swt bot
PPTX
Python, Development Environment for Windows
PDF
자바 웹프로젝트 개발환경 셋팅
PDF
Supervisord 사용법을 간단히 알아보자!
PDF
Rabbitmq install한글
PDF
동영상입문
Virtual Development Environment Setting
JavaInstall&Basic
Swt bot
Python, Development Environment for Windows
자바 웹프로젝트 개발환경 셋팅
Supervisord 사용법을 간단히 알아보자!
Rabbitmq install한글
동영상입문

More from Sukjin Yun (20)

PDF
Enterprise Java web Deployment Strategy
PDF
Geb quick start
PDF
BDD with Spock
PDF
Scala quick start
PDF
Spring java config
PPTX
Design pattern 옵저버
PDF
docker_quick_start
PPT
Servlet3
PDF
Weblogic install
PDF
무료로 워드프레스시작하기
PDF
Start groovy
PDF
Pygame
PDF
Annotation
PDF
마리아Db
PDF
Intellij java
PDF
Ldap serise v1
PDF
Android studio
PDF
20130709 gradle
PDF
Servlet design pattern
PPTX
Java sign
Enterprise Java web Deployment Strategy
Geb quick start
BDD with Spock
Scala quick start
Spring java config
Design pattern 옵저버
docker_quick_start
Servlet3
Weblogic install
무료로 워드프레스시작하기
Start groovy
Pygame
Annotation
마리아Db
Intellij java
Ldap serise v1
Android studio
20130709 gradle
Servlet design pattern
Java sign
Ad

Launch4j

  • 2. 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
  • 3. Launch4j  Java로 작업한 Jar 결과물을 Exe로 변환해주는 프로그램 http://launch4j.sourceforge.net/
  • 4. Launch4j 사용법  단순히 third party로 사 용하는 건 검색하세요  오늘 하려는 건 lanuch4j 를 Maven을 이용해서 통합하여 실행
  • 6. Maven Launch4j plugin 저장소설정  <pluginRepository> <id>akathist-repository</id> <name>Akathist Repository</name> <url>http://www.9stmaryrd.com/maven</url> </pluginRepository>
  • 8. 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메소드가 있는 파일
  • 9. 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버전 파일명
  • 10. 생성  package 단계에 launch4j 플러그인이 실행된 다. plugin에서 phase를 package로 했으니 까
  • 11. Assembly plugin 설정  이 설정이 포함되어있어야 합니다.
  • 13. To Other Time To Other place To Other Us