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文件拷贝到项目文件夹的根目录下
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文件拷贝到项目文件夹的根目录下
相关文章推荐
- ant学习笔记(六)ant编译web项目,并打成war包,同时加入数据库操作
- Java学习笔记之使用MyEclipse将java项目打包成jar文件,并生成Javadoc帮助文档
- 【web学习记录】项目框架搭建二(加入需要的jar包)
- maven 学习笔记(四)-创建简单的eclipse+maven工程(简单的java项目打包为jar并混淆jar文件)
- PhoneGap学习笔记-----phone3.4之Android搭建--导出jar包(处处可用)--并导出插件或加入第三方插件
- 安卓学习笔记---最全面的使用idea和gradle把java项目打包成jar的方法
- pomelo学习笔记 (4) libpomelo 编译静态库加入cocos2d-x xcode 项目
- 学习Symfony框架笔记------创建项目
- JAVA高并发秒杀API项目的学习笔记
- 学习笔记1--Android应用&Android studio项目结构
- java学习笔记:Eclipse打开现有项目
- Silverlight项目中"自定义控件开发/Style"学习笔记
- struts2系列学习笔记(1)---------------Struts2.2.1项目环境手动构建
- UEFI规范实现EDKII项目学习笔记绪论[0]
- 【原】java学习笔记 【三】 eclipse导出带图片jar 生成exe
- react项目学习笔记三(ant design)
- IOS 项目加入SDL库 --- FFMPEG+SDL学习 之 二
- 吴恩达深度学习笔记三:结构化机器学习项目
- ios学习笔记:从Java转ios项目总结
- cocos2d-x学习笔记1:cocos2dx 3.0 安装及项目创建