XML Feeds

.

[java-dev] Re: Running a Jar executable

Owen Green owen at owengreen.net
Mon Feb 4 18:42:34 MST 2008


Hi Adam & Benjamin,

If the Swing stuff is to run in the same JVM as mxj, on OS X, then it 
has to be invokeLater() every time, due to bad cocoa-carbon mojo.

So, Benjamin, if your original code doesn't do that, you'll either need 
to use Runtime.exec() or change it.

-- 
Owen

Adam Murray wrote:

> I haven't coded in Swing in a while, but I believe you should always
> use invokeLater or invokeAndWait. Sun's tutorials have more info:
> http://java.sun.com/docs/books/tutorial/uiswing/concurrency/initial.html
>  You only need to worry about this for the actual Swing code, not the
> exec call.




More information about the java-dev mailing list