Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Ant build on Mac
Ant build on Mac [message #497083] Thu, 12 November 2009 13:39 Go to next message
Divan Mostert is currently offline Divan MostertFriend
Messages: 8
Registered: November 2009
Junior Member
Hi,

I have an application that is build on the Eclipse platform and gets build using ANT. On Windows it builds perfectly, however on Mac I get the following exception:

[echo] !MESSAGE An error occurred while automatically activating bundle org.eclipse.ui.workbench (248).
[echo] org.osgi.framework.BundleException: The activator org.eclipse.ui.internal.WorkbenchPlugin for bundle org.eclipse.ui.workbench is invalid
[echo] Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError
[echo] java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError


Any ideas and pointers will be greatly appreciated.

Thanks
Re: Ant build on Mac [message #497092 is a reply to message #497083] Thu, 12 November 2009 13:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wangqs_eclipse.yahoo.com

Make sure that your build target includes RCP delta pack. You can find
information about delta pack at http://wiki.eclipse.org/index.php/RCP_FAQ


Divan Mostert wrote:
> Hi,
>
> I have an application that is build on the Eclipse platform and gets
> build using ANT. On Windows it builds perfectly, however on Mac I get
> the following exception:
>
> [echo] !MESSAGE An error occurred while automatically activating bundle
> org.eclipse.ui.workbench (248).
> [echo] org.osgi.framework.BundleException: The activator
> org.eclipse.ui.internal.WorkbenchPlugin for bundle
> org.eclipse.ui.workbench is invalid
> [echo] Caused by: java.lang.NoClassDefFoundError:
> org/eclipse/swt/SWTError
> [echo] java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError
>
>
> Any ideas and pointers will be greatly appreciated.
>
> Thanks
Re: Ant build on Mac [message #497101 is a reply to message #497083] Thu, 12 November 2009 14:14 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Divan Mostert a écrit :
> Hi,

Hello,


> I have an application that is build on the Eclipse platform and gets
> build using ANT. On Windows it builds perfectly, however on Mac I get
> the following exception:
>
> [echo] !MESSAGE An error occurred while automatically activating bundle
> org.eclipse.ui.workbench (248).
> [echo] org.osgi.framework.BundleException: The activator
> org.eclipse.ui.internal.WorkbenchPlugin for bundle
> org.eclipse.ui.workbench is invalid
> [echo] Caused by: java.lang.NoClassDefFoundError:
> org/eclipse/swt/SWTError
> [echo] java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError
>
>
> Any ideas and pointers will be greatly appreciated.
>
> Thanks


This usually means that platform-specific bundles were not found on your build platform. For example, you might have a Windows-ready Eclipse for building, but you are trying to run it on Mac, causing the NoClassDef on SWTError (since SWT needs some platform specific bundles/fragments).

Ensure that you have the right bundles for your platform in your build base, and consider installing the Delta Pack to be able to use the same build platform to build on all OS.

And, also, this message is often a simple but frightening warning, you may be able to go ahead even if you read it.

HTH

--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Re: Ant build on Mac [message #498756 is a reply to message #497101] Wed, 18 November 2009 14:58 Go to previous message
Divan Mostert is currently offline Divan MostertFriend
Messages: 8
Registered: November 2009
Junior Member
Thanks guys,

The problem seemed to have been a combination of the wrong Eclipse version and JDK set to 1.6 and not 1.5
Previous Topic:Removal from dropins folder deactivates plugin
Next Topic:Set start levels of plugins with p2.inf during PDE-Build
Goto Forum:
  


Current Time: Fri Apr 26 11:31:37 GMT 2024

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

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

Back to the top