您的位置:首页 > 其它

SWT学习笔记(一)-在项目中加入swt.jar

2008-04-25 19:16 246 查看
原文出处:http://www.cs.umanitoba.ca/~eclipse/1-Install.pdf
1 .swt.jar所在的位置 win32: INSTALLDIReclipsepluginsorg.eclipse.swt.win32_3.0.0wswin32 gtk: INSTALLDIR/eclipse/plugins/org.eclipse.swt.gtk_3.0.0/ws/gtk/ motif: INSTALLDIR/eclipse/plugins/org.eclipse.swt.motif_3.0.0/ws/motif/ photon: INSTALLDIR/eclipse/plugins/org.eclipse.swt.photon_3.0.0/ws/photon/ macosx: INSTALLDIR/eclipse/plugins/org.eclipse.swt.carbon_3.0.0/ws/carbon/ 2.加入swt.jar所需要的swt run-time DLL (否则会报“java.lang.UnsatisfiedLinkError: no swt-win32-2133 in java.library.path”错误) DLL文件位置: Windows: INSTALLDIReclipsepluginsorg.eclipse.swt.win32_3.0.0oswin32x86 Linux GTK: INSTALLDIR/eclipse/plugins/org.eclipse.swt.gtk_3.0.0/os/linux/x86 Linux Motif: INSTALLDIR/eclipse/plugins/org.eclipse.swt.motif_3.0.0/os/linux/x86 加入的方法: 1.将DLL文件的路径作为swt程序运行时的java虚拟机变量 -Djava.library.path=<folder containing the swt DLL>
2.在操作系统的环境变量中加入DLL文件的路径。 Linux/UNIX 下修改 “LD_LIBRARY_PATH" Windows下修改“PATH” 3.Windows下将DLL文件拷贝到WindowsSystem32文件夹中
4.将DLL文件拷贝到项目文件夹的根目录下
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: