![the java jar file could not be launched mac the java jar file could not be launched mac](https://i.stack.imgur.com/0xSBy.jpg)
Ask Ubuntu - How can I deal with file association in different application(not in Nautilus)?.Ask Ubuntu - Why do some icon themes have so many different sizes?įor this step you have to create a MIME Tipe, if it doesn't exist, and associate it with the application in the mimeapps.list file.In this case I think that a 96x96 px PNG is enough for a nice Desktop/Dash. You could use a 32x32 ~ 96x96 px PNG file, or a 128x128 ~ 512x512 px SVG file for better results. (The * is always the same name.)įor the icon sizes, Linux support a variety of image formats (PNG, JPG, SVG, etc.) and sizes (16x16 ~ 512x512 px). The -source option is used for cases when the source file is a 'script' to be executed and the name of the source file does not follow the normal naming conventions for Java source files.
#The java jar file could not be launched mac code#
Paste the following code lines in the file you are editing: java extension, the -source option must be used to tell the java command to use the source-file mode. Or open your file manager (Nautilus in this case) with super admin privileges by runing the following code line in the terminal: gksu nautilusĪfter that, go to /usr/share and create the folder folder with the GUI.Īlso in the terminal and run the following code line: gksu gedit /usr/share/applications/*.desktop Open the terminal and run the following code line: sudo mkdir /usr/share/folder For the ~/folder is a good idea to name it with the application name, for example, if the application is VUE name the folder ~/VUE or ~/vue.
![the java jar file could not be launched mac the java jar file could not be launched mac](https://1.bp.blogspot.com/-5XtiB-hFHA4/VR9e1UZk3oI/AAAAAAAACsw/c9AQMS2GW7U/s1600/Error%2BCould%2Bnot%2Bfind%2Bor%2Bload%2BMain%2BClass%2BHelloWorld.png)
In this case the directory I will use is /usr/share/folder. After installing the Java runtime environment you can create a launch icon like other applications in the system by making a *.desktop file.Ĭreate a folder in a directory of your choice with the *.jar (the application) and *.png (the application icon) files.