Skip to main content



      Home
Home » Newcomers » Newcomers » Can't run SWT
Can't run SWT [message #53509] Mon, 18 April 2005 08:27 Go to next message
Eclipse UserFriend
Originally posted by: jaschulz.wiseware.com

I have the problem everybody complains about:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no
swt-win32-3064 in java.library.path

I have:

-Djava.library.path=C:\eclipse\plugins\org.eclipse.swt.win32 _3.0.2\os\win32\x86\

in the VM Argument

I have tried copying both:

swt-awt-win32-0364.dll

and

swt-win32-0364.dll

to WINDOWS/SYSTEM32

I have even tried setting the default path to include:

C:\eclipse\plugins\org.eclipse.swt.win32_3.0.2\os\win32\x86\

All to no avail!

What am I supposed to do now?

Thanks,

JAS
Re: Can't run SWT [message #54080 is a reply to message #53509] Mon, 18 April 2005 19:09 Go to previous messageGo to next message
Eclipse UserFriend
Try this.... -yuchen
-----------------------------------------
Thanks!! It works now, I copied the dlls to the system32 dir. -yu


"Eric Clayberg" <clayberg@instantiations.com> wrote in message
news:d39jsl$1oj$1@news.eclipse.org...
> "Yu Chen" <yuchen@bea.com> wrote in message
> news:d375ds$d8k$1@news.eclipse.org...
>>I saw people had similar problem, and I also unjar the following jar file
>>from the plugins\. But I still got the same error, I can see the 3128.dll
>>file is in the java.library.path, but it just can not be found from the
>>simple swt program, what's wrong, any ideas??
>>> I had a similar problem with 3.1M6 where it couldn't find the swt dll to
>>> run my SWT application. The dll is in the swt jar. I copied the dll
>>> out of the jar into a directory on the library path so it could be found
>>> and then the application would run.
>
> Under M6, you need to extract the three DLLs from the new
> org.eclipse.swt.win32_3.1.0.jar file and copy them to your
> windows/system32 directory (or somewhere else on yoru path).
>
> You should then be able to use "Run As > Java Application" to run them.
> Don't use "Run As > SWT Application" as that is broken in M6.
>
> -Eric Clayberg
> Sr. Vice President of Product Development
> Instantiations, Inc.
> http://www.instantiations.com
> http://www.swt-designer.com
>
> Author: "Eclipse: Building Commercial Quality Plug-ins"
> http://www.awprofessional.com/title/0321228472
>


"James A. Schulz" <jaschulz@wiseware.com> wrote in message
news:d409hm$a6b$1@news.eclipse.org...
>I have the problem everybody complains about:
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no
> swt-win32-3064 in java.library.path
>
> I have:
>
> -Djava.library.path=C:\eclipse\plugins\org.eclipse.swt.win32 _3.0.2\os\win32\x86\
>
> in the VM Argument
>
> I have tried copying both:
>
> swt-awt-win32-0364.dll
>
> and
>
> swt-win32-0364.dll
>
> to WINDOWS/SYSTEM32
>
> I have even tried setting the default path to include:
>
> C:\eclipse\plugins\org.eclipse.swt.win32_3.0.2\os\win32\x86\
>
> All to no avail!
>
> What am I supposed to do now?
>
> Thanks,
>
> JAS
Re: Can't run SWT [message #54105 is a reply to message #53509] Mon, 18 April 2005 19:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Hasan81.turkhukuksitesi.net

Try

-Djava.library.path=C:\eclipse/plugins/org.eclipse.swt.win32 _3.0.2/os/win32/x86

instead of

-Djava.library.path=C:\eclipse\plugins\org.eclipse.swt.win32 _3.0.2\os\win32\x86

Make sure the dll's are present.
Re: Can't run SWT [message #54190 is a reply to message #54105] Mon, 18 April 2005 21:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jaschulz.wiseware.com

I tried your suggestion, but it didn't help.

There are two dll's in the x86 folder:

swt-awt-win32.3064.dll
swt-win32.3064.dll

So, what now?

James

Hasan wrote:
> Try
> -Djava.library.path=C:\eclipse/plugins/org.eclipse.swt.win32 _3.0.2/os/win32/x86
>
>
> instead of
> -Djava.library.path=C:\eclipse\plugins\org.eclipse.swt.win32 _3.0.2\os\win32\x86
>
>
> Make sure the dll's are present.
Re: Can't run SWT [message #54215 is a reply to message #54080] Mon, 18 April 2005 21:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jaschulz.wiseware.com

I had read Eric's message and tried his suggestion, but it didn't work.

James

Yu Chen wrote:
> Try this.... -yuchen
> -----------------------------------------
> Thanks!! It works now, I copied the dlls to the system32 dir. -yu
>
>
> "Eric Clayberg" <clayberg@instantiations.com> wrote in message
> news:d39jsl$1oj$1@news.eclipse.org...
>
>>"Yu Chen" <yuchen@bea.com> wrote in message
>>news:d375ds$d8k$1@news.eclipse.org...
>>
>>>I saw people had similar problem, and I also unjar the following jar file
>>
>>>from the plugins\. But I still got the same error, I can see the 3128.dll
>>
>>>file is in the java.library.path, but it just can not be found from the
>>>simple swt program, what's wrong, any ideas??
>>>
>>>>I had a similar problem with 3.1M6 where it couldn't find the swt dll to
>>>>run my SWT application. The dll is in the swt jar. I copied the dll
>>>>out of the jar into a directory on the library path so it could be found
>>>>and then the application would run.
>>
>>Under M6, you need to extract the three DLLs from the new
>>org.eclipse.swt.win32_3.1.0.jar file and copy them to your
>>windows/system32 directory (or somewhere else on yoru path).
>>
>>You should then be able to use "Run As > Java Application" to run them.
>>Don't use "Run As > SWT Application" as that is broken in M6.
>>
>>-Eric Clayberg
>>Sr. Vice President of Product Development
>>Instantiations, Inc.
>>http://www.instantiations.com
>>http://www.swt-designer.com
>>
>>Author: "Eclipse: Building Commercial Quality Plug-ins"
>>http://www.awprofessional.com/title/0321228472
>>
>
>
>
> "James A. Schulz" <jaschulz@wiseware.com> wrote in message
> news:d409hm$a6b$1@news.eclipse.org...
>
>>I have the problem everybody complains about:
>>
>>Exception in thread "main" java.lang.UnsatisfiedLinkError: no
>>swt-win32-3064 in java.library.path
>>
>>I have:
>>
>> -Djava.library.path=C:\eclipse\plugins\org.eclipse.swt.win32 _3.0.2\os\win32\x86\
>>
>>in the VM Argument
>>
>>I have tried copying both:
>>
>>swt-awt-win32-0364.dll
>>
>>and
>>
>>swt-win32-0364.dll
>>
>>to WINDOWS/SYSTEM32
>>
>>I have even tried setting the default path to include:
>>
>> C:\eclipse\plugins\org.eclipse.swt.win32_3.0.2\os\win32\x86\
>>
>>All to no avail!
>>
>>What am I supposed to do now?
>>
>>Thanks,
>>
>>JAS
>
>
>
Re: Can't run SWT [message #54905 is a reply to message #54190] Tue, 19 April 2005 14:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Hasan81.turkhukuksitesi.net

I really don't know. I have spent 3 #@$!@# days to make it work.
This is what I did:

*Install eclipse 3.0.2 instead of 3.1M6. You can uninstall easily by
removing the eclipse folder from your computer. No registry values are
changed.

*Install eclipse directly to my harddisk: C:\eclipse\..........

*For the standalone SWT App in the tutorial fill in:

-Djava.library.path=C:\eclipse/plugins/org.eclipse.swt.win32 _3.0.2/os/win32/x86

Make sure your java settings are correct:

I've installed j2sdk1.4.2_08 on my C disk.

Then I've set the PATH (configuration screen > system > advanced TAB >
environment variables) to C:\j2sdk1.4.2_08\bin
(There can be more than one item separated by ";")
For the CLASSPATH I've filled in a "." (dot).

And know it works. I know that what i've wrote is basic but this is all I
have done. Good luck.
Re: Can't run SWT [message #54957 is a reply to message #54905] Tue, 19 April 2005 15:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jaschulz.wiseware.com

Hasan:

Could it be that I have this problem because I am using jkk1.5.0_02?

James

Hasan wrote:
> I really don't know. I have spent 3 #@$!@# days to make it work.
> This is what I did:
>
> *Install eclipse 3.0.2 instead of 3.1M6. You can uninstall easily by
> removing the eclipse folder from your computer. No registry values are
> changed.
>
> *Install eclipse directly to my harddisk: C:\eclipse\..........
>
> *For the standalone SWT App in the tutorial fill in:
>
> -Djava.library.path=C:\eclipse/plugins/org.eclipse.swt.win32 _3.0.2/os/win32/x86
>
>
> Make sure your java settings are correct:
>
> I've installed j2sdk1.4.2_08 on my C disk.
>
> Then I've set the PATH (configuration screen > system > advanced TAB >
> environment variables) to C:\j2sdk1.4.2_08\bin
> (There can be more than one item separated by ";")
> For the CLASSPATH I've filled in a "." (dot).
>
> And know it works. I know that what i've wrote is basic but this is all
> I have done. Good luck.
>
>
>
>
>
>
>
>
Re: Can't run SWT [message #55013 is a reply to message #54957] Tue, 19 April 2005 17:19 Go to previous messageGo to next message
Eclipse UserFriend
There are three dll's that go into the system32 directory. If you are
in eclipse you need to recheck the items you have in the run tab and
make sure they are not running as a swtapp but a java app. This became
broken in the new release and will be repaired in the next.

James A. Schulz wrote:
> Hasan:
>
> Could it be that I have this problem because I am using jkk1.5.0_02?
>
> James
>
> Hasan wrote:
>
>> I really don't know. I have spent 3 #@$!@# days to make it work.
>> This is what I did:
>>
>> *Install eclipse 3.0.2 instead of 3.1M6. You can uninstall easily by
>> removing the eclipse folder from your computer. No registry values are
>> changed.
>>
>> *Install eclipse directly to my harddisk: C:\eclipse\..........
>>
>> *For the standalone SWT App in the tutorial fill in:
>>
>> -Djava.library.path=C:\eclipse/plugins/org.eclipse.swt.win32 _3.0.2/os/win32/x86
>>
>>
>> Make sure your java settings are correct:
>>
>> I've installed j2sdk1.4.2_08 on my C disk.
>>
>> Then I've set the PATH (configuration screen > system > advanced TAB >
>> environment variables) to C:\j2sdk1.4.2_08\bin
>> (There can be more than one item separated by ";")
>> For the CLASSPATH I've filled in a "." (dot).
>>
>> And know it works. I know that what i've wrote is basic but this is
>> all I have done. Good luck.
>>
>>
>>
>>
>>
>>
>>
>>
Re: Can't run SWT [message #55065 is a reply to message #55013] Tue, 19 April 2005 17:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jaschulz.wiseware.com

James,

There are only two dll's in my x86 folder:

swt-awt-win32-3064.dll

and

swt-win32-3064.dll

Where to I find the third dll to which you refer?

James

James Leotta wrote:
> There are three dll's that go into the system32 directory. If you are
> in eclipse you need to recheck the items you have in the run tab and
> make sure they are not running as a swtapp but a java app. This became
> broken in the new release and will be repaired in the next.
>
> James A. Schulz wrote:
>
>> Hasan:
>>
>> Could it be that I have this problem because I am using jkk1.5.0_02?
>>
>> James
>>
>> Hasan wrote:
>>
>>> I really don't know. I have spent 3 #@$!@# days to make it work.
>>> This is what I did:
>>>
>>> *Install eclipse 3.0.2 instead of 3.1M6. You can uninstall easily by
>>> removing the eclipse folder from your computer. No registry values
>>> are changed.
>>>
>>> *Install eclipse directly to my harddisk: C:\eclipse\..........
>>>
>>> *For the standalone SWT App in the tutorial fill in:
>>>
>>> -Djava.library.path=C:\eclipse/plugins/org.eclipse.swt.win32 _3.0.2/os/win32/x86
>>>
>>>
>>> Make sure your java settings are correct:
>>>
>>> I've installed j2sdk1.4.2_08 on my C disk.
>>>
>>> Then I've set the PATH (configuration screen > system > advanced TAB
>>> > environment variables) to C:\j2sdk1.4.2_08\bin
>>> (There can be more than one item separated by ";")
>>> For the CLASSPATH I've filled in a "." (dot).
>>>
>>> And know it works. I know that what i've wrote is basic but this is
>>> all I have done. Good luck.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
Re: Can't run SWT [message #55949 is a reply to message #55065] Wed, 20 April 2005 20:40 Go to previous messageGo to next message
Eclipse UserFriend
James A. Schulz wrote:
> James,
>
> There are only two dll's in my x86 folder:
>
> swt-awt-win32-3064.dll

Should be 3123.dll not 3064 you have older verion. Download from the
bottom of the M6 download page.
>
> and
>
> swt-win32-3064.dll
>
> Where to I find the third dll to which you refer?
>
> James
>
> James Leotta wrote:
>
>> There are three dll's that go into the system32 directory. If you are
>> in eclipse you need to recheck the items you have in the run tab and
>> make sure they are not running as a swtapp but a java app. This
>> became broken in the new release and will be repaired in the next.
>>
>> James A. Schulz wrote:
>>
>>> Hasan:
>>>
>>> Could it be that I have this problem because I am using jkk1.5.0_02?
>>>
>>> James
>>>
>>> Hasan wrote:
>>>
>>>> I really don't know. I have spent 3 #@$!@# days to make it work.
>>>> This is what I did:
>>>>
>>>> *Install eclipse 3.0.2 instead of 3.1M6. You can uninstall easily by
>>>> removing the eclipse folder from your computer. No registry values
>>>> are changed.
>>>>
>>>> *Install eclipse directly to my harddisk: C:\eclipse\..........
>>>>
>>>> *For the standalone SWT App in the tutorial fill in:
>>>>
>>>> -Djava.library.path=C:\eclipse/plugins/org.eclipse.swt.win32 _3.0.2/os/win32/x86
>>>>
>>>>
>>>> Make sure your java settings are correct:
>>>>
>>>> I've installed j2sdk1.4.2_08 on my C disk.
>>>>
>>>> Then I've set the PATH (configuration screen > system > advanced TAB
>>>> > environment variables) to C:\j2sdk1.4.2_08\bin
>>>> (There can be more than one item separated by ";")
>>>> For the CLASSPATH I've filled in a "." (dot).
>>>>
>>>> And know it works. I know that what i've wrote is basic but this is
>>>> all I have done. Good luck.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
Re: Can't run SWT [message #59931 is a reply to message #55949] Fri, 29 April 2005 17:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jaschulz.wiseware.com

I've been away for a week, but I am still struggling with this problem.

I am trying to use Eclipse 3.0.2 and so the proper dll's are 3064. I
just can't imagine that I am the only one who has this problem Doesn't
anybody know how to make 3.0.2 work with SWT?

Thanks,

James


James Leotta wrote:
> James A. Schulz wrote:
>
>> James,
>>
>> There are only two dll's in my x86 folder:
>>
>> swt-awt-win32-3064.dll
>
>
> Should be 3123.dll not 3064 you have older verion. Download from the
> bottom of the M6 download page.
>
>>
>> and
>>
>> swt-win32-3064.dll
>>
>> Where to I find the third dll to which you refer?
>>
>> James
>>
>> James Leotta wrote:
>>
>>> There are three dll's that go into the system32 directory. If you
>>> are in eclipse you need to recheck the items you have in the run tab
>>> and make sure they are not running as a swtapp but a java app. This
>>> became broken in the new release and will be repaired in the next.
>>>
>>> James A. Schulz wrote:
>>>
>>>> Hasan:
>>>>
>>>> Could it be that I have this problem because I am using jkk1.5.0_02?
>>>>
>>>> James
>>>>
>>>> Hasan wrote:
>>>>
>>>>> I really don't know. I have spent 3 #@$!@# days to make it work.
>>>>> This is what I did:
>>>>>
>>>>> *Install eclipse 3.0.2 instead of 3.1M6. You can uninstall easily
>>>>> by removing the eclipse folder from your computer. No registry
>>>>> values are changed.
>>>>>
>>>>> *Install eclipse directly to my harddisk: C:\eclipse\..........
>>>>>
>>>>> *For the standalone SWT App in the tutorial fill in:
>>>>>
>>>>> -Djava.library.path=C:\eclipse/plugins/org.eclipse.swt.win32 _3.0.2/os/win32/x86
>>>>>
>>>>>
>>>>> Make sure your java settings are correct:
>>>>>
>>>>> I've installed j2sdk1.4.2_08 on my C disk.
>>>>>
>>>>> Then I've set the PATH (configuration screen > system > advanced
>>>>> TAB > environment variables) to C:\j2sdk1.4.2_08\bin
>>>>> (There can be more than one item separated by ";")
>>>>> For the CLASSPATH I've filled in a "." (dot).
>>>>>
>>>>> And know it works. I know that what i've wrote is basic but this is
>>>>> all I have done. Good luck.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
Re: Can't run SWT [message #67896 is a reply to message #59931] Mon, 23 May 2005 19:15 Go to previous message
Eclipse UserFriend
Originally posted by: johnjunk.servicemachines.com

I re-did the whole thing from scratch. Then made a change suggested here to
change the VM Arguments to:
-Djava.library.path=C:\eclipse/plugins/org.eclipse.swt.win32 _3.0.2/os/win32/x86
and it finally ran.

JOhn

"James A. Schulz" <jaschulz@wiseware.com> wrote in message
news:d4u846$dc1$1@news.eclipse.org...
> I've been away for a week, but I am still struggling with this problem.
> I am trying to use Eclipse 3.0.2 and so the proper dll's are 3064. I just
> can't imagine that I am the only one who has this problem Doesn't anybody
> know how to make 3.0.2 work with SWT?
>
> Thanks,
>
> James
>
>
> James Leotta wrote:
>> James A. Schulz wrote:
>>
>>> James,
>>>
>>> There are only two dll's in my x86 folder:
>>>
>>> swt-awt-win32-3064.dll
>>
>>
>> Should be 3123.dll not 3064 you have older verion. Download from the
>> bottom of the M6 download page.
>>
>>>
>>> and
>>>
>>> swt-win32-3064.dll
>>>
>>> Where to I find the third dll to which you refer?
>>>
>>> James
>>>
>>> James Leotta wrote:
>>>
>>>> There are three dll's that go into the system32 directory. If you are
>>>> in eclipse you need to recheck the items you have in the run tab and
>>>> make sure they are not running as a swtapp but a java app. This became
>>>> broken in the new release and will be repaired in the next.
>>>>
>>>> James A. Schulz wrote:
>>>>
>>>>> Hasan:
>>>>>
>>>>> Could it be that I have this problem because I am using jkk1.5.0_02?
>>>>>
>>>>> James
>>>>>
>>>>> Hasan wrote:
>>>>>
>>>>>> I really don't know. I have spent 3 #@$!@# days to make it work.
>>>>>> This is what I did:
>>>>>>
>>>>>> *Install eclipse 3.0.2 instead of 3.1M6. You can uninstall easily by
>>>>>> removing the eclipse folder from your computer. No registry values
>>>>>> are changed.
>>>>>>
>>>>>> *Install eclipse directly to my harddisk: C:\eclipse\..........
>>>>>>
>>>>>> *For the standalone SWT App in the tutorial fill in:
>>>>>>
>>>>>> -Djava.library.path=C:\eclipse/plugins/org.eclipse.swt.win32 _3.0.2/os/win32/x86
>>>>>>
>>>>>> Make sure your java settings are correct:
>>>>>>
>>>>>> I've installed j2sdk1.4.2_08 on my C disk.
>>>>>>
>>>>>> Then I've set the PATH (configuration screen > system > advanced TAB
>>>>>> > environment variables) to C:\j2sdk1.4.2_08\bin
>>>>>> (There can be more than one item separated by ";")
>>>>>> For the CLASSPATH I've filled in a "." (dot).
>>>>>>
>>>>>> And know it works. I know that what i've wrote is basic but this is
>>>>>> all I have done. Good luck.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
Previous Topic:.metadata damaged
Next Topic:Unable to start Eclipse
Goto Forum:
  


Current Time: Wed May 07 15:41:00 EDT 2025

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

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

Back to the top