Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » org.eclipse.swt not found when building on Mac OS X
org.eclipse.swt not found when building on Mac OS X [message #517279] Fri, 26 February 2010 18:53 Go to next message
Ralf Ebert is currently offline Ralf EbertFriend
Messages: 168
Registered: July 2009
Senior Member
Hi,

I'm getting compile errors like these when building my project:

INFO: build
Error: file /Users/ralf/.hudson/jobs/addressbook/workspace/plugins/com.e xample.addressbook: The
project was not built since its build path is incomplete. Cannot find the class file for
org.eclipse.swt.widgets.Composite. Fix the build path then try building this project

I'm pretty sure the build setup is correct, because the same build works just fine when executed on
my Linux machine, this happens when building on OS X. The project also builds fine in the IDE with
the exact same .target file.

I already checked that the provisioned target platform contains all the SWT bundles (the target is
setup to include all environments).

As I had problems with that already, I suppose that it looks for SWT/carbon again. Could that be?
(the debug output says nothing about cocoa or carbon). How can I set the target.ws explicitly when
running Buckminster from Hudson? I already tried specifying '-ws=cocoa -os=macosx -arch=x86_64' as
JVM argument, which had no effect. Is there anything I could do to debug/fix this?

Greetings,

Ralf


--
http://www.ralfebert.de/blog/eclipsercp/
Re: org.eclipse.swt not found when building on Mac OS X [message #517322 is a reply to message #517279] Fri, 26 February 2010 22:22 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Ralf,
Try using '-Dosgi.ws=cocoa' instead of just '-ws=cocoa'. That will force the OSGi runtime to use cocoa.

Regards,
Thomas Hallgren


On 02/26/2010 07:53 PM, Ralf Ebert wrote:
> Hi,
>
> I'm getting compile errors like these when building my project:
>
> INFO: build
> Error: file
> /Users/ralf/.hudson/jobs/addressbook/workspace/plugins/com.e xample.addressbook:
> The project was not built since its build path is incomplete. Cannot
> find the class file for org.eclipse.swt.widgets.Composite. Fix the build
> path then try building this project
>
> I'm pretty sure the build setup is correct, because the same build works
> just fine when executed on my Linux machine, this happens when building
> on OS X. The project also builds fine in the IDE with the exact same
> .target file.
>
> I already checked that the provisioned target platform contains all the
> SWT bundles (the target is setup to include all environments).
>
> As I had problems with that already, I suppose that it looks for
> SWT/carbon again. Could that be? (the debug output says nothing about
> cocoa or carbon). How can I set the target.ws explicitly when running
> Buckminster from Hudson? I already tried specifying '-ws=cocoa
> -os=macosx -arch=x86_64' as JVM argument, which had no effect. Is there
> anything I could do to debug/fix this?
>
> Greetings,
>
> Ralf
>
>
Re: org.eclipse.swt not found when building on Mac OS X [message #517331 is a reply to message #517322] Fri, 26 February 2010 23:33 Go to previous messageGo to next message
Ralf Ebert is currently offline Ralf EbertFriend
Messages: 168
Registered: July 2009
Senior Member
Hi Thomas,

> Try using '-Dosgi.ws=cocoa' instead of just '-ws=cocoa'. That will force
> the OSGi runtime to use cocoa.

thanks for the hint, unfortunately it doesn't solve the issue. I see only org.eclipse.swt
getting searched for and being resolved, although
org.eclipse.swt.cocoa.macosx.x86_64_3.5.1.v3555a.jar is clearly present in the target
platform...

org.eclipse.swt:osgi.bundle/[3.5.1.v3555a,3.5.1.v3555a]: Trying provider local(target)
org.eclipse.swt:osgi.bundle/[3.5.1.v3555a,3.5.1.v3555a]: Found match 3.5.1.v3555a
org.eclipse.swt:osgi.bundle/[3.5.1.v3555a,3.5.1.v3555a]: Found match
org.eclipse.swt:osgi.bundle$3.5.1.v3555a

My feature refers to the official org.eclipse.rcp feature which includes
org.eclipse.swt.cocoa.macosx.x86_64 with platform feature. Not sure, should the swt
fragment get resolved and appear in the debug output?

What also surprises me, is that the build doesn't complain about the Import-Package:
org.eclipse.swt.widgets in the MAINFEST.MF missing, shouldn't it complain about this
first? What could cause such a strange platform-dependent error?

btw, the project I'm trying to build is again http://github.com/ralfebert/addressbook/,
commands are:

importtargetdefinition -A '${WORKSPACE}/features/com.example.addressbook.site/rcp.targ et'
import '${WORKSPACE}/features/com.example.addressbook.site/site.cqu ery'
build

I'm using Buckminster Buckminster 1.1.350.r11146 on Mac OS X 10.5 / Cocoa / x86_64.

Greetings,

Ralf



--
http://www.ralfebert.de/blog/eclipsercp/
Re: org.eclipse.swt not found when building on Mac OS X [message #517376 is a reply to message #517331] Sat, 27 February 2010 10:44 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
Hi Ralf,
Do you know if this runs OK on other platforms?

- thomas

On 02/27/2010 12:33 AM, Ralf Ebert wrote:
> Hi Thomas,
>
>> Try using '-Dosgi.ws=cocoa' instead of just '-ws=cocoa'. That will
>> force the OSGi runtime to use cocoa.
>
> thanks for the hint, unfortunately it doesn't solve the issue. I see
> only org.eclipse.swt getting searched for and being resolved, although
> org.eclipse.swt.cocoa.macosx.x86_64_3.5.1.v3555a.jar is clearly present
> in the target platform...
>
> org.eclipse.swt:osgi.bundle/[3.5.1.v3555a,3.5.1.v3555a]: Trying provider
> local(target)
> org.eclipse.swt:osgi.bundle/[3.5.1.v3555a,3.5.1.v3555a]: Found match
> 3.5.1.v3555a
> org.eclipse.swt:osgi.bundle/[3.5.1.v3555a,3.5.1.v3555a]: Found match
> org.eclipse.swt:osgi.bundle$3.5.1.v3555a
>
> My feature refers to the official org.eclipse.rcp feature which includes
> org.eclipse.swt.cocoa.macosx.x86_64 with platform feature. Not sure,
> should the swt fragment get resolved and appear in the debug output?
>
> What also surprises me, is that the build doesn't complain about the
> Import-Package: org.eclipse.swt.widgets in the MAINFEST.MF missing,
> shouldn't it complain about this first? What could cause such a strange
> platform-dependent error?
>
> btw, the project I'm trying to build is again
> http://github.com/ralfebert/addressbook/, commands are:
>
> importtargetdefinition -A
> '${WORKSPACE}/features/com.example.addressbook.site/rcp.targ et'
> import '${WORKSPACE}/features/com.example.addressbook.site/site.cqu ery'
> build
>
> I'm using Buckminster Buckminster 1.1.350.r11146 on Mac OS X 10.5 /
> Cocoa / x86_64.
>
> Greetings,
>
> Ralf
>
>
>
Re: org.eclipse.swt not found when building on Mac OS X [message #517420 is a reply to message #517376] Sat, 27 February 2010 17:15 Go to previous messageGo to next message
Ralf Ebert is currently offline Ralf EbertFriend
Messages: 168
Registered: July 2009
Senior Member
Hi Thomas,

> Do you know if this runs OK on other platforms?

I only have macosx/cocoa/x86_64 and linux/gtk/x86_64. As mentioned, the Linux Build runs
perfectly with exactly the same project, configuration and Buckminster version (I
re-checked this).

The problem really seems to be the swt fragment, on linux I see:

org.eclipse.swt.gtk.linux.x86_64:osgi.bundle/[3.5.2.v3557f,3 .5.2.v3557f](&(target.arch=x86_64)(target.os=linux)(targ et.ws=gtk)):
Found match org.eclipse.swt.gtk.linux.x86_64:osgi.bundle$3.5.2.v3557f

Nothing like that happens when building on OS X. Any chance to see the platform filter
which is used for building? What could go wrong on that area, where is the headless
installation different from the IDE?

Greetings,

Ralf



--
http://www.ralfebert.de/blog/eclipsercp/
Re: org.eclipse.swt not found when building on Mac OS X [message #517425 is a reply to message #517420] Sat, 27 February 2010 12:54 Go to previous messageGo to next message
Ralf Ebert is currently offline Ralf EbertFriend
Messages: 168
Registered: July 2009
Senior Member
Hi,

when I run the exact same command that Hudson wants to run manually, the build works fine.
Same user, so it's not a permission problem. I can't think of any reason why the exact
same command with the same user and same workspace contents:

- fails when ran from Hudson in Jetty
- works when run from the console

Greetings,

Ralf



--
http://www.ralfebert.de/blog/eclipsercp/
Re: org.eclipse.swt not found when building on Mac OS X [message #517427 is a reply to message #517420] Sat, 27 February 2010 18:54 Go to previous message
Ralf Ebert is currently offline Ralf EbertFriend
Messages: 168
Registered: July 2009
Senior Member
Hi,

> Nothing like that happens when building on OS X. Any chance to see the
> platform filter which is used for building? What could go wrong on that
> area, where is the headless installation different from the IDE?

whatever it was, it is fixed in 1.2.0.r11238.

Greetings,

Ralf


--
http://www.ralfebert.de/blog/eclipsercp/
Previous Topic:headless buckminster and plugin dependencies
Next Topic:installJRE and IBM j9
Goto Forum:
  


Current Time: Mon Jul 16 04:45:47 GMT 2018

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

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

Back to the top