欢迎光临
我们一直在努力

eclipse 中 UnsatisifiedLinkError 的解决方法-JSP教程,Java技巧及代码

建站超值云服务器,限时71元/月

方法一

q 9.9(e) start a windows command line and execute the following commands.

youll be using the value for $libpath that you wrote down in step 9.6(i).

microsoft windows 2000 [version 5.00.2195](c) copyright 1985-2000 microsoft corp.microsoft windows 2000 [version 5.00.2195](c) copyright 1985-2000 microsoft corp.c:\>echo %path%c:\winnt;c:\winnt ystem32;c:\winnt ystem32\wbemc:\>copy "c:\program files\eclipse\plugins\org.eclipse.swt.win32_2.1.0\os\win32\86\*" c:\winntc:\program files\eclipse\plugins\org.eclipse.swt.win32_2.1.0\os\win32\x86 wt-win32-2133.dll 1 file(s) copied.

echo %path%

this will show you your path. you should see "c:\winnt" in the path. if not, you have a very nonstandard windows configuration, and i assume youre an expert and can modify the next step as appropriate.

copy "c:\program

files\eclipse\plugins\org.eclipse.swt.win32_2.1.0\os\win32\x86\*" c:\winnt

the format of this line is

copy "$libpath\*" c:\winnt

this line copies the swt native library from its eclipse library into your systems library path. this will allow the system to find it. as i mentioned at the beginning of this step, the folder name is the $libpath value you saved in step 9.6(i).

note 
each time you upgrade eclipse, you may have to repeat this step. if there are changes to the native libraries, the eclipse team renames the library and changes all references to the new name. to see if this is necessary, try to run one of your simple swt example applications. if you get the unsatisfiedlinkerror, youll need to repeat this step.

now go back and rerun the application.

方法二

this usually appears as one of the following: exception in thread "main" java.lang.unsatisfiedlinkerror: no swt-pi-carbon-3063 in java.library.path (carbon on mac os x), exception in thread "main" java.lang.unsatisfiedlinkerror: no swt-win32-3063 in java.library.path (win32 on windows), or exception in thread "main" java.lang.unsatisfiedlinkerror: no swt-pi-gtk-3063 in java.library.path (gtk2 on linux). those are the unsatisifiedlinkerrors for swt in eclipse 3.0.1.for eclipse 3.0, it would be swt-pi-carbon-3062, swt-win32-3062, and swt-pi-gtk3062 respectively.

now there is an easy correction for this. just go to "run" | "run…", which brings up the "run" dialog. then navigate to the "arguments" tab and in the "vm arguments:" text box, enter (for eclipse 3.0.1):

-djava.library.path=${system:eclipse_home}/plugins/org.eclipse.swt.carbon_3.0.1/os/macosx/ppc (for carbon on mac os x)

-djava.library.path=${system:eclipse_home}/plugins/org.eclipse.swt.win32_3.0.1/os/win32/x86 (for win32 on windows) or

-djava.library.path=${system:eclipse_home}/plugins/org.eclipse.swt.gtk_3.0.1/os/linux/x86 (for gtk2 on linux).

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » eclipse 中 UnsatisifiedLinkError 的解决方法-JSP教程,Java技巧及代码
分享到: 更多 (0)

相关推荐

  • 暂无文章