Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » swt and eclipse 3.1
swt and eclipse 3.1 [message #442376] Thu, 02 September 2004 13:43 Go to next message
Jeff Kish is currently offline Jeff KishFriend
Messages: 5
Registered: July 2009
Junior Member
Greetings.
I'm relatively inexperienced in this domain.
I downloaded eclipse 3.1 and tried to build the swt project.

It could not "link" when I tried to run it.

Is there any clarification on how to setup the libraries/command line besides
what is in the tutorial?

Thanks
Jeff Kish
Re: swt and eclipse 3.1 [message #442385 is a reply to message #442376] Thu, 02 September 2004 21:21 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Please clarify what you mean by "link". The following SWT FAQ entires
should help:

See:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#missingdll
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#howbuilddll
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#howbuildjar


"Jeff Kish" <kishjjrjj@provide.net> wrote in message
news:4p8ej0h5oiklv7sh6hj5ihvl24j1o1t6p6@4ax.com...
> Greetings.
> I'm relatively inexperienced in this domain.
> I downloaded eclipse 3.1 and tried to build the swt project.
>
> It could not "link" when I tried to run it.
>
> Is there any clarification on how to setup the libraries/command line
> besides
> what is in the tutorial?
>
> Thanks
> Jeff Kish
Re: swt and eclipse 3.1 [message #442479 is a reply to message #442385] Fri, 03 September 2004 13:48 Go to previous messageGo to next message
Jeff Kish is currently offline Jeff KishFriend
Messages: 5
Registered: July 2009
Junior Member
On Thu, 2 Sep 2004 17:21:21 -0400, "Veronika Irvine" <veronika_irvine@oti.com>
wrote:

>Please clarify what you mean by "link". The following SWT FAQ entires
>should help:
>
>See:
> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#missingdll
> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#howbuilddll
> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#howbuildjar
>
>
>"Jeff Kish" <kishjjrjj@provide.net> wrote in message
>news:4p8ej0h5oiklv7sh6hj5ihvl24j1o1t6p6@4ax.com...
<snip>
>> Is there any clarification on how to setup the libraries/command line
>> besides
>> what is in the tutorial?
>>
>> Thanks
>> Jeff Kish
>
Thanks for your reply and references.
I had not downloaded the samples, etc.
They are downloaded now, but I'm getting a error when
I try to activate the run configuration:

First a popup:
title: Java Virtual Machine Launcher
body: Could not find the main class. Program will exit.

then on the Console tab:
java.lang.NoClassDefFoundError: swt/win32_3/0/0/os//x86
exception in thread "main"

It seems obvious what the problem is, but as I used the "search" button when
putting together the run configuration to find the main class. I'm not sure
what I bolluxed up.

Thanks for any hints,


Jeff Kish
Re: swt and eclipse 3.1 [message #442503 is a reply to message #442479] Mon, 06 September 2004 03:14 Go to previous messageGo to next message
Vic Hanson is currently offline Vic HansonFriend
Messages: 23
Registered: July 2009
Junior Member
Open up the "Create, manage, and run configurations" dialog
(Run->Run...). Goto the "(x)= Arguments" tab and under "VM arguments:"
put
-Djava.library.path=<INSTALLPATH>eclipse\plugins\org.eclipse.swt.win32_3.0.0\os\win32\x86

Change <INSTALLPATH> with the path to the base eclipse folder (in my
case c:\).

This can all be found in the following URL:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#standalone

This link is also very very handy in getting started with SWT apps:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/dev.html

Good luck.

Vic

Jeff Kish wrote:
> On Thu, 2 Sep 2004 17:21:21 -0400, "Veronika Irvine" <veronika_irvine@oti.com>
> wrote:
>
>
>>Please clarify what you mean by "link". The following SWT FAQ entires
>>should help:
>>
>>See:
>> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#missingdll
>> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#howbuilddll
>> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#howbuildjar
>>
>>
>>"Jeff Kish" <kishjjrjj@provide.net> wrote in message
>>news:4p8ej0h5oiklv7sh6hj5ihvl24j1o1t6p6@4ax.com...
>
> <snip>
>
>>>Is there any clarification on how to setup the libraries/command line
>>>besides
>>>what is in the tutorial?
>>>
>>>Thanks
>>>Jeff Kish
>>
> Thanks for your reply and references.
> I had not downloaded the samples, etc.
> They are downloaded now, but I'm getting a error when
> I try to activate the run configuration:
>
> First a popup:
> title: Java Virtual Machine Launcher
> body: Could not find the main class. Program will exit.
>
> then on the Console tab:
> java.lang.NoClassDefFoundError: swt/win32_3/0/0/os//x86
> exception in thread "main"
>
> It seems obvious what the problem is, but as I used the "search" button when
> putting together the run configuration to find the main class. I'm not sure
> what I bolluxed up.
>
> Thanks for any hints,
>
>
> Jeff Kish
Re: swt and eclipse 3.1 [message #442559 is a reply to message #442503] Wed, 08 September 2004 02:00 Go to previous messageGo to next message
Jeff Kish is currently offline Jeff KishFriend
Messages: 5
Registered: July 2009
Junior Member
Thanks.

I thought all those {system} "things" were like macros that would be expanded.
I guess I know better know.

Jeff

On Sun, 05 Sep 2004 20:14:26 -0700, Vic Hanson <fayth@4xdamage.com> wrote:

>Open up the "Create, manage, and run configurations" dialog
>(Run->Run...). Goto the "(x)= Arguments" tab and under "VM arguments:"
>put
>-Djava.library.path=<INSTALLPATH>eclipse\plugins\org.eclipse.swt.win32_3.0.0\os\win32\x86
>
>Change <INSTALLPATH> with the path to the base eclipse folder (in my
>case c:\).
>
>This can all be found in the following URL:
> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#standalone
>
>This link is also very very handy in getting started with SWT apps:
> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/dev.html
>
>Good luck.
>
>Vic
>
>Jeff Kish wrote:
>> On Thu, 2 Sep 2004 17:21:21 -0400, "Veronika Irvine" <veronika_irvine@oti.com>
>> wrote:
>>
>>
>>>Please clarify what you mean by "link". The following SWT FAQ entires
>>>should help:
>>>
>>>See:
>>> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#missingdll
>>> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#howbuilddll
>>> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#howbuildjar
>>>
>>>
>>>"Jeff Kish" <kishjjrjj@provide.net> wrote in message
>>>news:4p8ej0h5oiklv7sh6hj5ihvl24j1o1t6p6@4ax.com...
>>
>> <snip>
>>
>>>>Is there any clarification on how to setup the libraries/command line
>>>>besides
>>>>what is in the tutorial?
>>>>
>>>>Thanks
>>>>Jeff Kish
>>>
>> Thanks for your reply and references.
>> I had not downloaded the samples, etc.
>> They are downloaded now, but I'm getting a error when
>> I try to activate the run configuration:
>>
>> First a popup:
>> title: Java Virtual Machine Launcher
>> body: Could not find the main class. Program will exit.
>>
>> then on the Console tab:
>> java.lang.NoClassDefFoundError: swt/win32_3/0/0/os//x86
>> exception in thread "main"
>>
>> It seems obvious what the problem is, but as I used the "search" button when
>> putting together the run configuration to find the main class. I'm not sure
>> what I bolluxed up.
>>
>> Thanks for any hints,
>>
>>
>> Jeff Kish

Jeff Kish
Re: swt and eclipse 3.1 [message #442712 is a reply to message #442376] Mon, 13 September 2004 06:00 Go to previous message
Eclipse UserFriend
Originally posted by: junk.drip23.drizzle.com

Jeff Kish wrote:
> Greetings.
> I'm relatively inexperienced in this domain.
> I downloaded eclipse 3.1 and tried to build the swt project.
>
> It could not "link" when I tried to run it.
>
> Is there any clarification on how to setup the libraries/command line besides
> what is in the tutorial?
>
> Thanks
> Jeff Kish

Are you using windows or linux?
I had a similar problem in linux, and had not added the path to the
libraries to the vm arguments.
Previous Topic:how to create glass pane?
Next Topic:A question on Combo box
Goto Forum:
  


Current Time: Fri Apr 19 09:21:59 GMT 2024

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

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

Back to the top