Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change executable jar file icon?

Tags:

I have been able to change the runtime icon using this example like this

getFrame().setIconImage(Toolkit.getDefaultToolkit().getImage(getClass() .getClassLoader().getResource("MyProject/resources/myIcon.png"))); 

but is there a way to tell NetBeans to use myIcon.png for the executable jar file (MyProject/dist/MyProject.jar) icon?

like image 347
jacknad Avatar asked Mar 06 '12 19:03

jacknad


People also ask

How do I add a logo to a JAR file?

First step: Put your image in a defined location in your JAR-file. If you put it into the src-folder, maybe your IDE or your build-tool will package it to the JAR automatically. Otherwise check the documentation of your IDE/build-tool, in which location you have to put it.

Can you modify a JAR file?

You can use the JAR file editor to view or edit JAR file information that is stored in a data development project. If you make changes to JAR file information using the editor, you must deploy the JAR file to the database server again to apply the changes to the server version of the JAR file.

Can you convert exe to jar?

Replies (1)  Jar files are Java files, ordinary exe files cannot be converted to jar files, because the original application would not have been coded in Java . . Jar to exe can convert a jar file to an exe, by including the java runtime inside the exe file, that does not work the other way around . ..


1 Answers

A launch wrapper is the solution, I use launch4j, a cross platform lightweight wrapper

launch4j website

like image 185
Gary Benade Avatar answered Oct 14 '22 06:10

Gary Benade