Topic: SWT GUI程序运行需要怎么设置ClassPath?

  Print this page

1.SWT GUI程序运行需要怎么设置ClassPath? Copy to clipboard
Posted by: ronnin
Posted on: 2004-08-29 10:51

这里是指Win32下

2.Re:SWT GUI程序运行需要怎么设置ClassPath? [Re: ronnin] Copy to clipboard
Posted by: lkfi
Posted on: 2004-09-01 10:47

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
  <classpathentry kind="src" path=""/>
  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
  <classpathentry kind="lib" path="E:/Eclipse/eclipse-3.0/eclipse/plugins/org.eclipse.core.boot_3.0.0/boot.jar"/>
  <classpathentry kind="lib" path="E:/Eclipse/eclipse-3.0/eclipse/plugins/org.eclipse.swt.win32_3.0.0/ws/win32/swt.jar"/>
  <classpathentry kind="lib" path="E:/Eclipse/eclipse-3.0/eclipse/plugins/org.eclipse.core.runtime_3.0.0/runtime.jar"/>
  <classpathentry kind="output" path=""/>
</classpath>

这是我在eclipse下.classpath的内容。同时需要把swt-win32-3062.dll文件复制到相应文件夹下面。

3.Re:SWT GUI程序运行需要怎么设置ClassPath? [Re: ronnin] Copy to clipboard
Posted by: tangming
Posted on: 2004-09-01 17:08

如果你只用SWT的话,只需要swt.jar,当然还有那个swt-win32-xxx.dll文件。
要么放到WINNT/system32下,要么放到$jre$/bin目录下,
要么-Djava.library.path=所在目录。

如果你还要用到jface的话,则还需要jface.jar和runtime.jar。

4.Re:SWT GUI程序运行需要怎么设置ClassPath? [Re: ronnin] Copy to clipboard
Posted by: ronnin
Posted on: 2004-09-11 16:38

谢谢


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923