Follow Me


Java Application Process Name in Mac OS X


I have found that several of my Java applications have same process name on Mac OS X. JavaApplicationStub utility is usually used for launching java applications on mac os and as the result there are several processes named 'JavaApplicationStub' in Activity Monitor shown.

I have created simple HelloWorld application to reproduce this problem. And I was really surprised when saw that it's process name was correct!

Test application structure:

Hello World Mac OS application

The process name in system:
Hello World Mac OS application

I have realized that all needed to get correct process name is to define process name in project description Info.plist file (CFBundleName key):

<?xml version="1.0" encoding="UTF-8"?>
	<string>HelloWorld swing application for Mac OS X</string>

After reviewing my applications, I have found two reasons which can cause incorrect process name problems:

  • Application uses SWT library for GUI building (in this case process name will be 'SWT')
  • Application is hidden from doc and does not have GUI (you can do it by adding 'LSUIElement' key equals to '1' into Info.plist file)

It was quite easy to solve problem in SWT based applications. There is API method that can be used in your code to define correct process name exist. But keep in mind that you should call this method before Display creating and shell initialization (this was my problem reason):

public static void main(String[] args) {
	display = new Display();
	shell = new Shell(display, SWT.NO_TRIM | SWT.ON_TOP);

I have found that in hidden application its process name depends on gui level initialization of the apple jvm. So only way to solve this problem is to create hidden unused frame:

public static void main(String[] args) {
	JFrame f = new JFrame();
	// Your hidden application code

I hope this post would help someone. Comments are welcome!

Share this
HelloWorld.app_.zip36.95 KB

burberry outlet michiganWho and arms vacation wome

Why? Basically, it is crucial because apart from the functions of the desk, it should also give ergonomic comfort. The bouquet and first tasting on the tongue and palate reveal the wine provenance and grape variety. Whether you have a slim briefcase at home or are planning to get one burberry store online, this article will help you to define which will be best for you. You will see that most of these flower girl dresses are recommended to little ladies, matching the actual dress of the bride or sometimes that of the bridesmaids. The second step, is voice. Tea bags don't quite provide the same benefit as the entire green tea leaf, although a superior quality, organic source will do just fine. Another key rule to follow is that you should not trust just your first impression of a scent. The fact is spin plays less of a role for most of these players. Your Gucci handbag and also accessories are some of the most desired handbags these days. They may receive a very simple clean up, just to make the ball good enough to be knocked about on a driving range or at home.. You can find big brands under the comprehensive range of wholesale replica sunglasses including Armani, Gucci discount burberry, Versace, Ray Ban and many more.. Keep a good grip on the rod and then shoot the ball forward by flicking your wrist. This is a great option for people who have problem with small space in your room. Blow rate is relatively fixed in manual machines and is related to the drop height or the regulation of the air or steam pressure in a power-drop hammer.. 2009 1 1street, according to the total-identified producers and the Market Kind Thing Complete Assemblage, some Oughout.S. It is almost the opposite, quite dull and not shiny at all. To date these folks were able to move towards a wide variety of selections within their seventeen pages food list. These beast. When you wash dishes, you are getting rid of greasy, dirty water each time you take out the plug, so that grease and soap residue can easily adhere to any particles of food in the pipes and form a barrier for water to get through. It is so beautiful and clear cake stand which is normally silver in color made from a good quality material and have a great look. Some strapless heart monitors require users to put two fingers on sensors on the receiver. is a certified wholesale grower located in Tennessee that provides all kinds of native plants burberry puffer coat, shrubs, ferns and trees. Remember if convenience and costs are overriding concerns, then a cappuccino coffee machine is what you need.Related articles:

Post new comment

Are You Human/Bot?
© 2006-2010