![](/img/trans.png)
[英]Running an executable jar of SWT/JFace project on the other Computers
[英]Running a jar of SWT/JFace project on the other Computers
我正在創建一個SWT / JFace項目並將其導出為可執行jar。 但是此jar無法在其他計算機上運行。 當使用雙擊罐子時,什么也沒有發生。 我確定其他用戶已經安裝了JRE。
我認為問題是引用圖書館。 Beause在圖書館附近寫有C:\\ Users \\ Turgut-İhracat.p2\\ pool \\ plugins \\ org.eclipse.osgi_3.12.50.v20170928-1321.jar
任何幫助將不勝感激。
一個普通的SWT Java應用程序至少需要
org.eclipse.swt_<version>.jar
和 org.eclipse.swt.<platform>_<version>.jar
具有相同版本。 依賴於平台的JAR包含本機SWT庫,並且必須與操作系統和JRE相對應,例如,對於Windows和64位JRE,當前JAR為org.eclipse.swt.win32.win32.x86_64_3.106.1.v20170926-0519.jar
(對於macOS X,另請參見在Mac OS X上部署SWT應用程序 。)。
對於JFace JAR
org.eclipse.jface_<version>.jar
, org.eclipse.equinox.common_<version>.jar
和 org.eclipse.core.commands_<version>.jar
。 另外是必需的(請參閱在Eclipse平台之外使用JFace )。
僅基於OSGi的應用程序需要org.eclipse.osgi
JAR和其他JAR。 SWT / JFace在純Java和OSGi應用程序中均可工作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.