Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Editor plugin doesn't work on Mac
Editor plugin doesn't work on Mac [message #67347] Mon, 06 July 2009 18:05 Go to next message
Addison Mayberry is currently offline Addison MayberryFriend
Messages: 12
Registered: July 2009
Junior Member
I'm building a plugin in Eclipse 3.5 on Windows which is a text editor for
a language that my group works with. I distributed it as a .jar and just
had people place it in the dropins folder. The problem is it doesn't run
on any of the Macs that my coworkers use, but it seems to work fine on my
PC and the one other PC in the group. When run on a Mac, the plugin is
simply not detected by Eclipse. No errors are generated as far as I can
tell, I've checked the log files and run Eclipse in debug mode with no
results. I've also tried -clean with no success. It's as if the file's not
even there.

I'm brand-new to Eclipse and Eclipse plugin development, so I did some
googling and found out about the Delta Packs, installed the one for my
version and retargeted my plugin. (Just to be sure I did it right, I
unzipped the delta pack to a folder and then added that folder to the
"Running Platform" configuration for the plugin targets.) Even after that
we get the same result on the Mac -> no result at all. Since I have to bug
a coworker every time I want to try something I haven't checked the error
logs after trying the Delta Pack'd version.

I suspect it's just something simple that I need to do that I'm not aware
of since I'm reverse-engineering this process from stuff I found on google
and the newsgroups here, or it might be related to the infamous OSX/SWT
issue, I don't know if that's been resolved or not. Any help at all is
appreciated!
Re: Editor plugin doesn't work on Mac [message #67407 is a reply to message #67347] Tue, 07 July 2009 06:54 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
(*) Do you have the platform filters in your plugin/feature?
(*) Probably your plugin has set JavaSE1.6 in the execution env or
probably its compiled with a 1.6 compiler and Java 1.6 and its not
installed in the Macs?


- Prakash

---
http://blog.eclipse-tips.com
Re: Editor plugin doesn't work on Mac [message #67491 is a reply to message #67407] Tue, 07 July 2009 20:37 Go to previous messageGo to next message
Addison Mayberry is currently offline Addison MayberryFriend
Messages: 12
Registered: July 2009
Junior Member
Thank you for responding.

> (*) Do you have the platform filters in your plugin/feature?

I assume you mean an Eclipse-PlatformFilter entry (sorry, still not
familiar with a lot of the terminology)? If so, no I don't have any. Are
you saying that adding one might be helpful/necessary, or just checking to
make sure that I don't?

> (*) Probably your plugin has set JavaSE1.6 in the execution env or
> probably its compiled with a 1.6 compiler and Java 1.6 and its not
> installed in the Macs?

I am set to run 1.6, but so are the Macs I've tried it on.
Re: Editor plugin doesn't work on Mac [message #67513 is a reply to message #67491] Wed, 08 July 2009 06:51 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
Addison Mayberry wrote:
> I assume you mean an Eclipse-PlatformFilter entry (sorry, still not
> familiar with a lot of the terminology)? If so, no I don't have any. Are
> you saying that adding one might be helpful/necessary, or just checking
> to make sure that I don't?
Just make sure that you don't have a filter (so that it is applicable
on all the platforms)

> I am set to run 1.6, but so are the Macs I've tried it on.

Do the Macs have 1.6? Does the Eclipse use it or 1.5 is set as the
default VM and the Eclipse instances are running on 1.5?

- Prakash
---
http://blog.eclipse-tips.com
Re: Editor plugin doesn't work on Mac [message #67555 is a reply to message #67513] Wed, 08 July 2009 15:07 Go to previous messageGo to next message
Addison Mayberry is currently offline Addison MayberryFriend
Messages: 12
Registered: July 2009
Junior Member
> Do the Macs have 1.6? Does the Eclipse use it or 1.5 is set as the
> default VM and the Eclipse instances are running on 1.5?

The Macs have 1.6, I checked and Eclipse is set to use it. Wouldn't an
issue like that generate errors in the log file, though?
Re: Editor plugin doesn't work on Mac [message #67573 is a reply to message #67555] Wed, 08 July 2009 18:26 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
Addison Mayberry wrote:
> The Macs have 1.6, I checked and Eclipse is set to use it. Wouldn't an
> issue like that generate errors in the log file, though?
Not sure why nothing in the Error Log. If you could debug in a Mac, you
can try running the target Eclipse with the -console option (which gives
you the osgi console) and check why the plugin is not loaded.

- Prakash
---
http://blog.eclipse-tips.com
Re: Editor plugin doesn't work on Mac [message #67875 is a reply to message #67573] Fri, 10 July 2009 15:35 Go to previous messageGo to next message
Addison Mayberry is currently offline Addison MayberryFriend
Messages: 12
Registered: July 2009
Junior Member
> Not sure why nothing in the Error Log. If you could debug in a Mac, you
> can try running the target Eclipse with the -console option (which gives
> you the osgi console) and check why the plugin is not loaded.

First off, thanks for taking the time to offer all these suggestions, I
really appreciate the ideas. I haven't done what you suggested yet, but I
did load the entire plugin project onto a Mac and tried to run a test
configuration of Eclipse and finally got an actual error message:

ENTRY org.eclipse.osgi 4 0 2009-07-10 11:19:54.718
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: no swt-carbon-3349 or swt-carbon in
swt.library.path, java.library.path or the jar file
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:21 9)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:15 1)
...and so on...

Any thoughts?
Re: Editor plugin doesn't work on Mac [message #67917 is a reply to message #67875] Fri, 10 July 2009 15:44 Go to previous messageGo to next message
Addison Mayberry is currently offline Addison MayberryFriend
Messages: 12
Registered: July 2009
Junior Member
> ENTRY org.eclipse.osgi 4 0 2009-07-10 11:19:54.718
> !MESSAGE Application error
> !STACK 1
> java.lang.UnsatisfiedLinkError: no swt-carbon-3349 or swt-carbon in
> swt.library.path, java.library.path or the jar file
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:21 9)
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:15 1)
> ...and so on...

I just found out that the particular Mac I ran this on was running Eclipse
1.3, and that this is an issue that has been addressed in Eclipse 1.5.
Disregard.
Re: Editor plugin doesn't work on Mac [message #67938 is a reply to message #67917] Fri, 10 July 2009 17:50 Go to previous message
Addison Mayberry is currently offline Addison MayberryFriend
Messages: 12
Registered: July 2009
Junior Member
The issue has been resolved, I realized that neither of the two Macs I was
doing my primary testing on were running Eclipse 3.5 and were encountering
the SWT/Carbon issue. I compiled the plugin using Java 5 on someone's
recommendation and ran it under Eclipse 3.5 on a Mac and it worked. Thank
you for your help!
Re: Editor plugin doesn't work on Mac [message #599069 is a reply to message #67347] Tue, 07 July 2009 06:54 Go to previous message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
(*) Do you have the platform filters in your plugin/feature?
(*) Probably your plugin has set JavaSE1.6 in the execution env or
probably its compiled with a 1.6 compiler and Java 1.6 and its not
installed in the Macs?


- Prakash

---
http://blog.eclipse-tips.com
Re: Editor plugin doesn't work on Mac [message #599107 is a reply to message #67407] Tue, 07 July 2009 20:37 Go to previous message
Addison Mayberry is currently offline Addison MayberryFriend
Messages: 12
Registered: July 2009
Junior Member
Thank you for responding.

> (*) Do you have the platform filters in your plugin/feature?

I assume you mean an Eclipse-PlatformFilter entry (sorry, still not
familiar with a lot of the terminology)? If so, no I don't have any. Are
you saying that adding one might be helpful/necessary, or just checking to
make sure that I don't?

> (*) Probably your plugin has set JavaSE1.6 in the execution env or
> probably its compiled with a 1.6 compiler and Java 1.6 and its not
> installed in the Macs?

I am set to run 1.6, but so are the Macs I've tried it on.
Re: Editor plugin doesn't work on Mac [message #599112 is a reply to message #67491] Wed, 08 July 2009 06:51 Go to previous message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
Addison Mayberry wrote:
> I assume you mean an Eclipse-PlatformFilter entry (sorry, still not
> familiar with a lot of the terminology)? If so, no I don't have any. Are
> you saying that adding one might be helpful/necessary, or just checking
> to make sure that I don't?
Just make sure that you don't have a filter (so that it is applicable
on all the platforms)

> I am set to run 1.6, but so are the Macs I've tried it on.

Do the Macs have 1.6? Does the Eclipse use it or 1.5 is set as the
default VM and the Eclipse instances are running on 1.5?

- Prakash
---
http://blog.eclipse-tips.com
Re: Editor plugin doesn't work on Mac [message #599123 is a reply to message #67513] Wed, 08 July 2009 15:07 Go to previous message
Addison Mayberry is currently offline Addison MayberryFriend
Messages: 12
Registered: July 2009
Junior Member
> Do the Macs have 1.6? Does the Eclipse use it or 1.5 is set as the
> default VM and the Eclipse instances are running on 1.5?

The Macs have 1.6, I checked and Eclipse is set to use it. Wouldn't an
issue like that generate errors in the log file, though?
Re: Editor plugin doesn't work on Mac [message #599131 is a reply to message #67555] Wed, 08 July 2009 18:26 Go to previous message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
Addison Mayberry wrote:
> The Macs have 1.6, I checked and Eclipse is set to use it. Wouldn't an
> issue like that generate errors in the log file, though?
Not sure why nothing in the Error Log. If you could debug in a Mac, you
can try running the target Eclipse with the -console option (which gives
you the osgi console) and check why the plugin is not loaded.

- Prakash
---
http://blog.eclipse-tips.com
Re: Editor plugin doesn't work on Mac [message #599239 is a reply to message #67573] Fri, 10 July 2009 15:35 Go to previous message
Addison Mayberry is currently offline Addison MayberryFriend
Messages: 12
Registered: July 2009
Junior Member
> Not sure why nothing in the Error Log. If you could debug in a Mac, you
> can try running the target Eclipse with the -console option (which gives
> you the osgi console) and check why the plugin is not loaded.

First off, thanks for taking the time to offer all these suggestions, I
really appreciate the ideas. I haven't done what you suggested yet, but I
did load the entire plugin project onto a Mac and tried to run a test
configuration of Eclipse and finally got an actual error message:

ENTRY org.eclipse.osgi 4 0 2009-07-10 11:19:54.718
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: no swt-carbon-3349 or swt-carbon in
swt.library.path, java.library.path or the jar file
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:21 9)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:15 1)
...and so on...

Any thoughts?
Re: Editor plugin doesn't work on Mac [message #599253 is a reply to message #67875] Fri, 10 July 2009 15:44 Go to previous message
Addison Mayberry is currently offline Addison MayberryFriend
Messages: 12
Registered: July 2009
Junior Member
> ENTRY org.eclipse.osgi 4 0 2009-07-10 11:19:54.718
> !MESSAGE Application error
> !STACK 1
> java.lang.UnsatisfiedLinkError: no swt-carbon-3349 or swt-carbon in
> swt.library.path, java.library.path or the jar file
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:21 9)
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:15 1)
> ...and so on...

I just found out that the particular Mac I ran this on was running Eclipse
1.3, and that this is an issue that has been addressed in Eclipse 1.5.
Disregard.
Re: Editor plugin doesn't work on Mac [message #599261 is a reply to message #67917] Fri, 10 July 2009 17:50 Go to previous message
Addison Mayberry is currently offline Addison MayberryFriend
Messages: 12
Registered: July 2009
Junior Member
The issue has been resolved, I realized that neither of the two Macs I was
doing my primary testing on were running Eclipse 3.5 and were encountering
the SWT/Carbon issue. I compiled the plugin using Java 5 on someone's
recommendation and ran it under Eclipse 3.5 on a Mac and it worked. Thank
you for your help!
Previous Topic:Feature based app is exporting fine but not starting with exit code -1
Next Topic:Bulding product with one plug-ing having aspects
Goto Forum:
  


Current Time: Thu Dec 26 13:10:10 GMT 2024

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

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

Back to the top