|
|
|
|
|
Re: Help needed with link error [message #694125 is a reply to message #693009] |
Thu, 07 July 2011 21:26 |
Daren Scot Wilson Messages: 7 Registered: July 2011 |
Junior Member |
|
|
I have the same problem as the OP, except I'm on Linux not Windows. Did the -D thing, no change. A clue might be that when the java source compiles, I get a warning:
Quote:
Build path specifies execution environment CDC-1.0/Foundation-1.0. There are no JREs installed in the workspace that are strictly compatible with this environment. org.eclipse.swt.gtk.linux.x86_64 Build path JRE System Library Problem
Another clue, or maybe irrelevant, is when I try "java HelloWorldSWT" at the command line, I get:
Quote:
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Display at HiMarsSwt.main(HiMarsSwt.java:12)
(note: i called my latest attempt "HiMarsSwt" not "HelloWorldSWT")
One notion in my software-experienced but java-naive mind is that somehow SWT isn't installed, that it needs to be installed separately from the jdk. Guessing that if SWT truly exists, there'd be a file, probably many, with "swt" in their names, I tried:
dwilson ~ ===> cd SW/SDK/jdk1.6.0_26
dwilson ~/SW/SDK/jdk1.6.0_26 ===> find . -iname '*swt*'
dwilson ~/SW/SDK/jdk1.6.0_26 ===>
(To be clear, that means no files found.)
Eclipse's directory does show about a dozen files, including one mentioned in the link error, libswt-gtk-3735.so (The OP has Windows, I'm on Linux, aside from that it's the same file) Maybe some path somewhere needs to be fixed?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.10337 seconds