For example, exchange that cup of coffee for another icon.
3
Unlike executable files, common files like . jar has no icon of its own (the same goes for images, text documents and everything else that is associated with another application - even those that have thumbnails of files are handled by an extension of the OS). What shows the icon is the operating system, depending on the file association. In Windows this stays in the registry, and is usually linked when installing an application that "assumes" that extension, or when you do an "open with..." and choose a program definitively.
From a . jar is just not possible, or you exchange all . jars or none. One option is to create an executable that initializes yours. jar, or create a shortcut for it.
There is this software that converts . jar to . exe and you can set an image to the generated file. http://jsmooth.sourceforge.net/ , I don’t give an example because I don’t work with java, but here’s the tip.
Behold that my answer. There’s a hint of how to create a custom executable with icon and everything :)
– user28595
1
You have an option called icon, just pass the path of some.icon file to it. -> https://a.fsdn.com/con/app/proj/launch4j/screenshots/basicSettings.PNG/1
– user28595
@diegofm the application says output file is empty. How to proceed?
– user77896
1
See print, all fields there should be informed. output is the path of the executable to be created, click on the tablet.
@diegofm appears a message saying: Specify minimum JRE bersion and/or bundled JRE path. How to proceed?
– user77896
1
Do you want the application to perform at least on which version of Java Virtual Machine(jre) ? This is for compatibility purposes. For example, if you use Java 8 features, you need to have Java 8 as the minimum version, otherwise it won’t work.
– user28595
1
@Guilhermepassos clicks on the JRE tab, has a field called min JRE.
– user28595
1
Which version of the JRE you will define as minimum?
– user28595
@diegofm 1.8.0_121, this one
– user77896
1
@Guilhermesteps after filling all the fields of the first tab and inserting this minimum version in the field I showed, click on the gear symbol at the top of the screen. Launch will ask you to save an xml, which is the configuration you just set in it. After that, your app.exe will be in the location you reported on output
– user28595
1
@Guilhermepassos if you don’t pass the imagem.ico will not assign icon. It cannot be png or jpg, it is required to be .ico. And if it is a jar executed in text mode, it is also wasting time, it will not work if it is not executed in command line.
– user28595
@diegofm the first icon problem, you just solved
– user77896
@diegofm now, how so executed in text mode? What is the difference of command line
– user77896
1
@Text mode steps is when it runs in a console window of the IDE, fully text. If you don’t have graphical interface, it’s silly to create exe.
– user28595
@diegofm, I just formatted the image for ico and solved everything, now it is working perfectly. Thank you very much for your help, and above all for your patience!
Unlike executable files, common files like . jar has no icon of its own (the same goes for images, text documents and everything else that is associated with another application - even those that have thumbnails of files are handled by an extension of the OS). What shows the icon is the operating system, depending on the file association. In Windows this stays in the registry, and is usually linked when installing an application that "assumes" that extension, or when you do an "open with..." and choose a program definitively.
– Bacco
From a . jar is just not possible, or you exchange all . jars or none. One option is to create an executable that initializes yours. jar, or create a shortcut for it.
– Math
There is this software that converts . jar to . exe and you can set an image to the generated file. http://jsmooth.sourceforge.net/ , I don’t give an example because I don’t work with java, but here’s the tip.
– Don't Panic
Behold that my answer. There’s a hint of how to create a custom executable with icon and everything :)
– user28595
You have an option called icon, just pass the path of some.icon file to it. -> https://a.fsdn.com/con/app/proj/launch4j/screenshots/basicSettings.PNG/1
– user28595
@diegofm the application says output file is empty. How to proceed?
– user77896
See print, all fields there should be informed. output is the path of the executable to be created, click on the tablet.
– user28595
@Guilhermepassos https://i.stack.Imgur.com/hGATu.jpg
– user28595
@diegofm appears a message saying: Specify minimum JRE bersion and/or bundled JRE path. How to proceed?
– user77896
Do you want the application to perform at least on which version of Java Virtual Machine(jre) ? This is for compatibility purposes. For example, if you use Java 8 features, you need to have Java 8 as the minimum version, otherwise it won’t work.
– user28595
@Guilhermepassos clicks on the JRE tab, has a field called min JRE.
– user28595
Which version of the JRE you will define as minimum?
– user28595
@diegofm 1.8.0_121, this one
– user77896
@Guilhermesteps after filling all the fields of the first tab and inserting this minimum version in the field I showed, click on the gear symbol at the top of the screen. Launch will ask you to save an xml, which is the configuration you just set in it. After that, your app.exe will be in the location you reported on
output
– user28595
@Guilhermepassos if you don’t pass the
imagem.ico
will not assign icon. It cannot be png or jpg, it is required to be.ico
. And if it is a jar executed in text mode, it is also wasting time, it will not work if it is not executed in command line.– user28595
@diegofm the first icon problem, you just solved
– user77896
@diegofm now, how so executed in text mode? What is the difference of command line
– user77896
@Text mode steps is when it runs in a console window of the IDE, fully text. If you don’t have graphical interface, it’s silly to create exe.
– user28595
@diegofm, I just formatted the image for ico and solved everything, now it is working perfectly. Thank you very much for your help, and above all for your patience!
– user77896
@Guilhermepassos without any problems. :)
– user28595