commit bfa6d259a33173bb9bcf56d8edc31d2764c6e124 Author: wangbing Date: Mon Oct 9 22:00:58 2023 +0800 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ff6309 --- /dev/null +++ b/.gitignore @@ -0,0 +1,38 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### IntelliJ IDEA ### +.idea/modules.xml +.idea/jarRepositories.xml +.idea/compiler.xml +.idea/libraries/ +*.iws +*.iml +*.ipr + +### Eclipse ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ + +### Mac OS ### +.DS_Store \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..dc7cd70 --- /dev/null +++ b/pom.xml @@ -0,0 +1,73 @@ + + 4.0.0 + org.example + starter-jar2exe + 1.0-SNAPSHOT + starter-jar2exe + http://maven.apache.org + + + + + aliyun + Aliyun Repository + default + https://maven.aliyun.com/repository/public + + + + + + aliyun + Aliyun Repository + https://maven.aliyun.com/repository/public + default + + + + + UTF-8 + + + + + + io.github.fvarrui + javapackager + 1.7.1 + + + package + + package + + + + com.example.jar2exe.Application + + true + true + true + windows + ${artifactId} + ${version} + + ${project.basedir}/src/main/resources/icon.ico + + + + + ${project.basedir}/src/main/resources/icon.ico + false + false + false + + + + + + + + + diff --git a/src/main/java/com/example/jar2exe/Application.java b/src/main/java/com/example/jar2exe/Application.java new file mode 100644 index 0000000..9580b2a --- /dev/null +++ b/src/main/java/com/example/jar2exe/Application.java @@ -0,0 +1,12 @@ +package com.example.jar2exe; + +import javax.swing.*; + +public class Application { + + public static void main(String[] args) { + JFrame jFrame = new JFrame(); + jFrame.setSize(800, 600); + jFrame.setVisible(true); + } +} diff --git a/src/main/resources/icon.ico b/src/main/resources/icon.ico new file mode 100644 index 0000000..888c387 Binary files /dev/null and b/src/main/resources/icon.ico differ