I write java application and get the jar file, it work from command line
java -jar program.jar
I want to write installer program to put my application in Unity Launcher (quicklaunch) in Ubuntu.
can anyone give my how can I start?
In the file browser window that just opened, find an Application you wish to create a Launcher for on your desktop. Perform right click and Copy action. Then, right click on your desktop and press Paste . The last thing we need to do is right click on the newly created desktop shortcut and click on Allow Launching .
Another way of launching an application is to press Alt + F2 , enter its command name, and then press the Enter key. For example, to launch Rhythmbox, press Alt + F2 and type 'rhythmbox' (without the single-quotes). The name of the app is the command to launch the program.
create a simple .desktop file in ~/.local/share/applications/
vim ~/.local/share/applications/application_name.desktop
add these entries to file
[Desktop Entry]
Name= your application name
Comment=
Exec=java -jar program.jar
Icon=/path/to/icon
Terminal=false
Type=Application
StartupNotify=true
you will need to log off and back in for the change to take effect.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With