Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Help: standalone SWT on OS X
Help: standalone SWT on OS X [message #437639] Wed, 09 June 2004 00:02 Go to next message
Bryan Hunt is currently offline Bryan HuntFriend
Messages: 366
Registered: July 2009
Senior Member
I'm getting the following message when attempting to run a standalone
SWT app on OS X:

Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/
swt/internal/carbon/OS
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:308)
at test.TestTable.main(TestTable.java:30)


I've tripple checked my vm args:

-Djava.library.path="/Applications/Eclipse/RC1/plugins/org.eclipse.swt.
carbon_3.0.0/os/macosx/ppc"

Anyone have an idea on the piece of magic I've missed?

Bryan
Re: Help: standalone SWT on OS X [message #437776 is a reply to message #437639] Thu, 10 June 2004 03:37 Go to previous messageGo to next message
Daniel Spiewak is currently offline Daniel SpiewakFriend
Messages: 263
Registered: July 2009
Senior Member
Check your classpath. It's a NoClassDefFoundError, so it's in the Java
code, not the native. The execution hasn't gotten to the native code yet.

Daniel

Bryan Hunt wrote:

>I'm getting the following message when attempting to run a standalone
>SWT app on OS X:
>
>Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/
>swt/internal/carbon/OS
> at org.eclipse.swt.widgets.Display.<clinit>(Display.java:308)
> at test.TestTable.main(TestTable.java:30)
>
>
>I've tripple checked my vm args:
>
>-Djava.library.path="/Applications/Eclipse/RC1/plugins/org.eclipse.swt.
>carbon_3.0.0/os/macosx/ppc"
>
>Anyone have an idea on the piece of magic I've missed?
>
>Bryan
>
>
Re: Help: standalone SWT on OS X [message #437866 is a reply to message #437776] Fri, 11 June 2004 15:35 Go to previous message
Bryan Hunt is currently offline Bryan HuntFriend
Messages: 366
Registered: July 2009
Senior Member
I'm running from Eclipse, so my classpath should be fine.

In <ca8kmd$1oo$1@eclipse.org> Daniel Spiewak wrote:
> Check your classpath. It's a NoClassDefFoundError, so it's in the
> Java code, not the native. The execution hasn't gotten to the native
> code yet.
>
> Daniel
>
> Bryan Hunt wrote:
>
>>I'm getting the following message when attempting to run a standalone
>>SWT app on OS X:
>>
>>Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/
>>swt/internal/carbon/OS
>> at org.eclipse.swt.widgets.Display.<clinit>(Display.java:308)
>> at test.TestTable.main(TestTable.java:30)
>>
>>
>>I've tripple checked my vm args:
>>
>>-Djava.library.path="/Applications/Eclipse/RC1/plugins/org.eclipse.swt.
>>carbon_3.0.0/os/macosx/ppc"
>>
>>Anyone have an idea on the piece of magic I've missed?
>>
>>Bryan
>>
>>
>
Previous Topic:How 2 suppress Certificate warning dialog while using Browser ActiveX
Next Topic:getSWTImage returning null for SWT.ICON_ERROR
Goto Forum:
  


Current Time: Thu Apr 25 04:38:52 GMT 2024

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

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

Back to the top