Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [swt][cocoa] Cannot run an Eclipse application with the SWT Cocoa port
[swt][cocoa] Cannot run an Eclipse application with the SWT Cocoa port [message #332420] Tue, 21 October 2008 10:51 Go to next message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

Hi,

I'd like to test the current state of the SWT Cocoa port.

Here is what I did:
I checked out the sources of org.eclipse.swt and org.eclipse.swt.coca.macosx

I renamed the cocoa classpath file to be the .classpath file.

I built those plugins.

Then I tried to start my eclipse instance, and I had this exception:
!ENTRY org.eclipse.osgi 4 0 2008-10-21 12:23:01.185
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: no swt-cocoa-3513 or swt-cocoa in
swt.library.path, java.library.path or the jar file
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:23 5)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:15 3)
at org.eclipse.swt.internal.C.<clinit>(C.java:21)
at org.eclipse.swt.internal.cocoa.id.objc_getClass(id.java:35)
at org.eclipse.swt.internal.cocoa.NSObject.alloc(NSObject.java: 28)
at org.eclipse.swt.graphics.Device.<init>(Device.java:116)
at org.eclipse.swt.widgets.Display.<init>(Display.java:542)
at org.eclipse.swt.widgets.Display.<init>(Display.java:533)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.ja va:525)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
at
org.eclipse.ui.internal.ide.application.IDEApplication.creat eDisplay(IDEApplication.java:143)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:88)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

What can I do about this ? Is there an error on my end ?

Thanks,

Antoine
Re: [swt][cocoa] Cannot run an Eclipse application with the SWT Cocoa port [message #332425 is a reply to message #332420] Tue, 21 October 2008 14:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

Sorry, should have posted to the swt newsgroup.

Thanks,

Antoine

Antoine Toulme wrote:
> Hi,
>
> I'd like to test the current state of the SWT Cocoa port.
>
> Here is what I did:
> I checked out the sources of org.eclipse.swt and
> org.eclipse.swt.coca.macosx
>
> I renamed the cocoa classpath file to be the .classpath file.
>
> I built those plugins.
>
> Then I tried to start my eclipse instance, and I had this exception:
> !ENTRY org.eclipse.osgi 4 0 2008-10-21 12:23:01.185
> !MESSAGE Application error
> !STACK 1
> java.lang.UnsatisfiedLinkError: no swt-cocoa-3513 or swt-cocoa in
> swt.library.path, java.library.path or the jar file
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:23 5)
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:15 3)
> at org.eclipse.swt.internal.C.<clinit>(C.java:21)
> at org.eclipse.swt.internal.cocoa.id.objc_getClass(id.java:35)
> at org.eclipse.swt.internal.cocoa.NSObject.alloc(NSObject.java: 28)
> at org.eclipse.swt.graphics.Device.<init>(Device.java:116)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:542)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:533)
> at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.ja va:525)
> at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.creat eDisplay(IDEApplication.java:143)
>
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:88)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> 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:585)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
>
> What can I do about this ? Is there an error on my end ?
>
> Thanks,
>
> Antoine
Re: [swt][cocoa] Cannot run an Eclipse application with the SWT Cocoa port [message #332427 is a reply to message #332425] Tue, 21 October 2008 15:01 Go to previous messageGo to next message
Duong Nguyen is currently offline Duong NguyenFriend
Messages: 7
Registered: July 2009
Junior Member
Hi Antoine,

You may have checked out from HEAD while we were in the middle of an
integration build yesterday evening. Do you see the libraries with the
correct version (3513) in the org.eclipse.swt.coca.macosx fragment?

I just checked out from HEAD this morning and I was able to launch my
examples. Can you update and try it again?

Duong
Re: [swt][cocoa] Cannot run an Eclipse application with the SWT Cocoa port [message #332431 is a reply to message #332427] Tue, 21 October 2008 16:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

I updated, rebuilt, restarted, same error.

The contents of the cocoa fragment :
about_files
META-INF
..project
about.html
build.properties
build.xml
fragment.properties
libswt-awt-cocoa-3513.jnilib
libswt-cocoa-3513.jnilib
libswt-pi-cocoa-3513.jnilib
libswt-xulrunner-cocoa-3513.jnilib

I'm pretty sure this has more to do with running the Cocoa port in an
Eclipse instance.

Can you run an Eclipse instance with the cocoa port, or just your samples ?

Thanks,

Antoine

Duong Nguyen wrote:
> Hi Antoine,
>
> You may have checked out from HEAD while we were in the middle of an
> integration build yesterday evening. Do you see the libraries with the
> correct version (3513) in the org.eclipse.swt.coca.macosx fragment?
>
> I just checked out from HEAD this morning and I was able to launch my
> examples. Can you update and try it again?
>
> Duong
>
>
Re: [swt][cocoa] Cannot run an Eclipse application with the SWT Cocoa port [message #332439 is a reply to message #332431] Tue, 21 October 2008 17:54 Go to previous messageGo to next message
Duong Nguyen is currently offline Duong NguyenFriend
Messages: 7
Registered: July 2009
Junior Member
> I'm pretty sure this has more to do with running the Cocoa port in an
> Eclipse instance.

> Can you run an Eclipse instance with the cocoa port, or just your samples ?

I'm running with a recent cocoa build and I can run another Eclipse
instance (self host). What version of Eclipse are you using? Is your host
Eclipse environment carbon? If yes, you'll need to change the target
platform environment variable to cocoa.

STEPS:
- open the Preferences page - select Preferences from the Window menu
- select Plug-in Development->Target Platform
- select Environment tab
- if the Window System isn't cocoa, change it to cocoa
- press Apply and close the preferences dialog

As an alternative, you can download the latest cocoa build of Eclipse and
run it.
Re: [swt][cocoa] Cannot run an Eclipse application with the SWT Cocoa port [message #332447 is a reply to message #332439] Tue, 21 October 2008 19:24 Go to previous message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

OK, it worked! Awesome, thanks!

Antoine

Duong Nguyen wrote:
>> I'm pretty sure this has more to do with running the Cocoa port in an
>> Eclipse instance.
>
>> Can you run an Eclipse instance with the cocoa port, or just your
>> samples ?
>
> I'm running with a recent cocoa build and I can run another Eclipse
> instance (self host). What version of Eclipse are you using? Is your
> host Eclipse environment carbon? If yes, you'll need to change the
> target platform environment variable to cocoa.
>
> STEPS:
> - open the Preferences page - select Preferences from the Window menu
> - select Plug-in Development->Target Platform
> - select Environment tab
> - if the Window System isn't cocoa, change it to cocoa
> - press Apply and close the preferences dialog
>
> As an alternative, you can download the latest cocoa build of Eclipse
> and run it.
>
Previous Topic:Is there a listener for project references changed event
Next Topic:How to remote debug?
Goto Forum:
  


Current Time: Tue Nov 12 04:45:47 GMT 2024

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

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

Back to the top