Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find information on integrating Java applications into the Ubuntu application indicator menu?

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.

like image 947
Warkior Avatar asked Oct 21 '11 18:10

Warkior


People also ask

How to find out if Java is installed in Ubuntu?

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.

How do I run a Java program on Ubuntu?

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 ...

Why Java runtime library is not installed by default in Ubuntu?

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.

What version of Java do I have on my 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.


1 Answers

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.

like image 69
Nathan Moos Avatar answered Sep 29 '22 20:09

Nathan Moos