I have a Java application that essentially functions like an instant messaging type of program. Until the recent "upgrades" to Ubuntu with the Unity interface I had a simple icon showing up in the system tray. I realise there has been a lot of discussion regarding going back to the original purpose of this tray and don't desire to discuss that here. Rather, I'm looking for a simple and concise tutorial or documentation on how to properly integrate my app into the messaging system. I want new messages to pop-up notifications, and I've been able to do that through libnotify, however I don't know how to add the app itself as an entry under the messaging menu. Any help pointing me in the right direction would be much appreciated. I need the app to continue working cross-platform.
How to Find Out if Java is Installed in Ubuntu and How to Install It. This updates all the packages in available in Ubuntu. Type your password at the prompt and press Enter. When the update is done, choose which a package from the list to install java. In our example, we installed version 6. Type the following command at the prompt and press Enter.
Java Installation. In order to compile and run a basic Java program, you need to have the following two software installed on your Ubuntu system: Java Runtime Environment (JRE) Java Development Kit (JDK) Let us first open the Ubuntu command line, the Terminal, in order to install these two. You can open the Terminal either through ...
Certain applications in Ubuntu require that Java Runtime Library is installed on your system. It does not come by default with most Ubuntu versions as security is a concern when Java is installed on your system.
Once you have opened the Terminal, enter one of the following Java commands in order to check it’s version: This will ensure whether Java Runtime Environment is already installed on your system or not. If yes, it will also let you know which version of Java you have on your system.
I think the best way to solve this is to use the Java DBUS library ( http://dbus.freedesktop.org/doc/dbus-java/ ) and learn about the Unity appindicator DBUS API. Then, write a special component for Unity and dynamically load this component if you are running Ubuntu.
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