Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] How to launch a Carbon app without any wrappers?

Hi Björn,

There is an application in Developer/Applications called
MRJAppBuilder. Maybe that's what you are looking for. It creates
application bundles out of java classes/jars. You can also include
other jars. MRJAppBuilder takes care of your classpath.

Yes I know, but MRJAppBuilder is exactly what I want to avoid.

On any Java platform I can launch a Java application from the command line with
	"java <name_of_class_with_main>".
This even works on MacOS X if the Java application happens to use AWT.

However if the application uses SWT (which at least conceptionally is
identical to AWT), I can start the app but I cannot activate its top
level windows. As a consequence I don't get a menubar. And there is
no icon in the Dock.

If I start the application by using MRJAppBuilder everything works fine.

So I'm looking for the magic that MRJAppBuilder is using in order to
start a java application that behaves like a normal Mac application
with GUI.

But thanks for your help anyway.

--andre



Back to the top