Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Problems on OSX
Problems on OSX [message #54299] Tue, 06 December 2005 20:05 Go to next message
Eclipse UserFriend
Originally posted by: pete.quantrix.com

Greetings folks,

We are using Equinox with org.eclipse.core.runtime as our plugin
framework. It works beautifully!

We are currently having some troubles with Eclipse 3.1.1 running our
applications on Mac OSX. It appears that the old StartInFirstThread
problem is looming again. In summary, if we define the following
IPlatformRunnable, and wire it up in a new plugin project on OSX, we
consistently get the stack trace in the log file appended below. This
happens with 1.4.2 as well as 1.5 (different message, though).

NOTE: the command line arguments contains -ws carbon even though my
run-config in Eclipse does NOT contain the ws setting (that's how you used
to avoid this problem or one like it).

Does anyone have any hint as to how to make this work properly in 3.1.1?

On top of this, Apple's latest 1.5 release apparently doesn't work with
AWT when launched with the eclipse osgi / core-runtime at all....

Thanks for any suggestions!

Cheers,

pete
peter m. murray
pete--at--quantrix--dot--com

Code:
package test.quaqua;

import javax.swing.JOptionPane;
import javax.swing.SwingUtilities;

import org.eclipse.core.runtime.IPlatformRunnable;

public class Runner implements IPlatformRunnable
{
public Object run(Object args) throws Exception
{
SwingUtilities.invokeAndWait(new Runnable()
{
public void run()
{
JOptionPane.showConfirmDialog(null, "Hello world!");
}
});
return null;
}
}


Log file:

!SESSION 2005-12-06 15:00:52.964
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_09
java.vendor=Apple Computer, Inc.
BootLoader constants: OS=macosx, ARCH=ppc, WS=carbon, NL=en_US
Framework arguments: -application TestQuaQua.blah.balh -pdelaunch
Command-line arguments: -application TestQuaQua.blah.balh -data
/Users/pete/runtime-workspace -dev
file:/Users/pete/workspace/.metadata/.plugins/org.eclipse.pd e.core/Test
QuaQua/dev.properties -pdelaunch -os macosx -ws carbon -arch ppc

!ENTRY org.eclipse.osgi 2005-12-06 15:00:53.673
!MESSAGE Application error
!STACK 1
java.lang.InternalError: Can't start the AWT because Java was started on
the first thread. Make sure StartOnFirstThread is not specified in your
application's Info.plist or on the command line
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction. java:50)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:3 8)
at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
at java.awt.EventQueue.<clinit>(EventQueue.java:83)
at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java :1225)
at test.quaqua.Runner.run(Runner.java:12)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Re: Problems on OSX [message #54718 is a reply to message #54299] Mon, 12 December 2005 23:08 Go to previous message
Eclipse UserFriend
Originally posted by: jeff_nospam_mcaffer.ca.ibm.com

Peter,

Looks interesting. Can you submit a bug report in the Equinox/Framework
component with the details?

Jeff

"Peter Murray" <pete@quantrix.com> wrote in message
news:fd1558a1c39616e67a1be6ebe69e0742$1@www.eclipse.org...
> Greetings folks,
>
> We are using Equinox with org.eclipse.core.runtime as our plugin
> framework. It works beautifully!
>
> We are currently having some troubles with Eclipse 3.1.1 running our
> applications on Mac OSX. It appears that the old StartInFirstThread
> problem is looming again. In summary, if we define the following
> IPlatformRunnable, and wire it up in a new plugin project on OSX, we
> consistently get the stack trace in the log file appended below. This
> happens with 1.4.2 as well as 1.5 (different message, though).
>
> NOTE: the command line arguments contains -ws carbon even though my
> run-config in Eclipse does NOT contain the ws setting (that's how you used
> to avoid this problem or one like it).
>
> Does anyone have any hint as to how to make this work properly in 3.1.1?
>
> On top of this, Apple's latest 1.5 release apparently doesn't work with
> AWT when launched with the eclipse osgi / core-runtime at all....
>
> Thanks for any suggestions!
>
> Cheers,
>
> pete
> peter m. murray
> pete--at--quantrix--dot--com
>
> Code:
> package test.quaqua;
>
> import javax.swing.JOptionPane;
> import javax.swing.SwingUtilities;
>
> import org.eclipse.core.runtime.IPlatformRunnable;
>
> public class Runner implements IPlatformRunnable
> {
> public Object run(Object args) throws Exception
> {
> SwingUtilities.invokeAndWait(new Runnable()
> {
> public void run()
> {
> JOptionPane.showConfirmDialog(null, "Hello world!");
> }
> });
> return null;
> }
> }
>
>
> Log file:
>
> !SESSION 2005-12-06 15:00:52.964
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.4.2_09
> java.vendor=Apple Computer, Inc.
> BootLoader constants: OS=macosx, ARCH=ppc, WS=carbon, NL=en_US
> Framework arguments: -application TestQuaQua.blah.balh -pdelaunch
> Command-line arguments: -application TestQuaQua.blah.balh -data
> /Users/pete/runtime-workspace -dev
> file:/Users/pete/workspace/.metadata/.plugins/org.eclipse.pd e.core/Test
> QuaQua/dev.properties -pdelaunch -os macosx -ws carbon -arch ppc
>
> !ENTRY org.eclipse.osgi 2005-12-06 15:00:53.673
> !MESSAGE Application error
> !STACK 1
> java.lang.InternalError: Can't start the AWT because Java was started on
> the first thread. Make sure StartOnFirstThread is not specified in your
> application's Info.plist or on the command line
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)
> at java.lang.Runtime.loadLibrary0(Runtime.java:788)
> at java.lang.System.loadLibrary(System.java:834)
> at sun.security.action.LoadLibraryAction.run(LoadLibraryAction. java:50)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:3 8)
> at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
> at java.awt.EventQueue.<clinit>(EventQueue.java:83)
> at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java :1225)
> at test.quaqua.Runner.run(Runner.java:12)
> at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
java:226)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
..java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
> at org.eclipse.core.launcher.Main.run(Main.java:973)
> at org.eclipse.core.launcher.Main.main(Main.java:948)
>
>
>
Previous Topic:Using standalone OSGI bundles in Eclipse
Next Topic:equinox vs. standard Plug-in Project
Goto Forum:
  


Current Time: Fri Apr 19 15:14:55 GMT 2024

Powered by FUDForum. Page generated in 0.02298 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top