Unable to run a SimpleTree program [message #77641] |
Tue, 14 June 2005 05:22 |
Eclipse User |
|
|
|
Originally posted by: mskarica.earthlink.net
I'm new to eclipse. Been doing a lot of reading on eclipse, plugins, doing
the simple tutorials, etc. I'm not new to Java programming, but I am new
to Java programming within the eclipse environment. I was able to create
and run a simple programs that just produces some output to the console.
Now I'm moving on and testing some things that I am going to need for a
project that I will be working on. The first thing is creating a tree
structure. I've found several examples on how to do this, so I created a
new project, added the code to it, and tried to run it to see how it runs,
where it runs (by this I mean wether it runs in a new window or not), how
it looks, etc. But when I try to run the Tree program, I get the
following error message:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no
swt-win32-3064 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:10 0)
at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)
at org.eclipse.swt.graphics.Device.init(Device.java:564)
at org.eclipse.swt.widgets.Display.init(Display.java:1781)
at org.eclipse.swt.graphics.Device.<init>(Device.java:100)
at org.eclipse.swt.widgets.Display.<init>(Display.java:356)
at org.eclipse.swt.widgets.Display.<init>(Display.java:352)
at SWTSimpleTree.<init>(SWTSimpleTree.java:10)
at SWTSimpleTree.main(SWTSimpleTree.java:48)
Obviously the first line stands out, I need to add something to my
classpath. I saw a previous post which talked about a similar problem, so
I tried to follow its directions by going to my Environment, under system
variables I clicked on PATH and clicked on edit. I added the following 3
things to my path:
1)
C:\eclipse\plugins\org.eclipse.swt.win32_3.0.2\os\win32\x86\ swt-awt-win32-3064.dll;
2)
C:\eclipse\plugins\org.eclipse.swt.win32_3.0.2\os\win32\x86\ swt-win32-3064.dll;
3) C:\eclipse\plugins\org.eclipse.swt.win32_3.0.2\ws\win32\swt. jar
After I did this, I'm still getting the same error. I don't know if I did
this wrong, or maybe the PATH is not the problem. Maybe the problem is the
way I'm trying to run the project....I don't know.
Can Anyone please point me in the right direction?? Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.05951 seconds