Editor plugin doesn't work on Mac [message #67347] |
Mon, 06 July 2009 14:05  |
Eclipse User |
|
|
|
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 #67938 is a reply to message #67917] |
Fri, 10 July 2009 13:50  |
Eclipse User |
|
|
|
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 #599107 is a reply to message #67407] |
Tue, 07 July 2009 16:37  |
Eclipse User |
|
|
|
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 02:51  |
Eclipse User |
|
|
|
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 11:07  |
Eclipse User |
|
|
|
> 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 14:26  |
Eclipse User |
|
|
|
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 11:35  |
Eclipse User |
|
|
|
> 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 11:44  |
Eclipse User |
|
|
|
> 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 13:50  |
Eclipse User |
|
|
|
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!
|
|
|
Powered by
FUDForum. Page generated in 0.03601 seconds