Can't run SWT [message #53509] |
Mon, 18 April 2005 08:27  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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 #54215 is a reply to message #54080] |
Mon, 18 April 2005 21:25   |
Eclipse User |
|
|
|
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 #67896 is a reply to message #59931] |
Mon, 23 May 2005 19:15  |
Eclipse User |
|
|
|
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.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
|
|
|
Powered by
FUDForum. Page generated in 0.09933 seconds