[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] question of running SWT example
|
Hi,all:
I am a new user of eclipse. According to the help contens.
I try to run the SWT examples step by step.
All things go smoothly except the last step "running the example"
the help doc says
"
Select Run > Run... from the main menu.
In the Launch Configurations dialog that appears, select Java Application
and click on the New button.
Fill in the Name, Project and Main class fields according to the example
that you wish to run.
Select the Arguments tab. In the VM Arguements area specify the location of
the SWT library depending on your target platform as follows:
win32: -Djava.library.path=INSTALLDIR\plugins\org.eclipse.swt.win32_2.1.0\os
\win32\x86
linux
gtk: -Djava.library.path=INSTALLDIR/eclipse/plugins/org.eclipse.swt.gtk_2.1.
0/os/linux/x86
"
(my environment is windows XP,JDK1.4.1)
I tried but failed.
the eclipse console output:
java.lang.NoClassDefFoundError:
java/library/path=d:\eclipse\plugins\org/eclipse/swt/win32_2/1/0\os\win32\x8
6
Exception in thread "main"
the error is so strange, "dot" is changed to "slash".
who can help me and thanks.