-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path82_executable,jar
More file actions
38 lines (35 loc) · 1.57 KB
/
82_executable,jar
File metadata and controls
38 lines (35 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
#Create an executable jar with Eclipse IDE
------------------------------------------
1. Right click on Java Project (pick a project with a GUI)
2. Export
3. Java > Runnable Jar file
4. At Launch configuration select your project
5. At Export destination, select where you want this jar file exported to
6. Finish
#Create an executable jar with IntelliJ
1. File > Project Structure > Artifacts > (+) > JAR > jar from module with dependencies
2. Main Class: select the class containing your main method
3. OK
3. Change output directory to where you want this JAR saved to
4. Apply > OK
7. Build (top of window in Intellij) > Build Artifacts> Build
#If you want an icon, convert an image to a .ico file
------------------------------------------------------
1. https://icoconvert.com/ (this is a decent site)
2. Choose your image (File type my vary)
3. Upload
4. Convert to ICO
5. Download your icon
#Use Launch4 to create an .exe with custom icon
------------------------------------------------
1. Install Launch4j http://launch4j.sourceforge.net/
2. Output file: browse for the output destination and name your file ending with .exe
3. Jar: browse for where you saved your jar or executable jar file
4. (Optional) Icon: browse for your custom icon (must be .ico)
5. Navigate to JRE tab
6. Bundled JRE path: Browse for location of your jdk (Example C:\Program Files\Java\jdk-14.0.1)
7. At the top of window, click the Build Wrapper (gear con)
8. Name and save the Launch4j config file where you want
9. Your application.exe should be saved to your output file location (no longer need previous files)
*/