0

在这里,我试图将 Vuze-SVN 导入 Eclipse。我按照http://wiki.vuze.com/w/Using_Eclipse上的说明进行操作。我想我解决了 swt.jar 版本问题,因为我现在遇到的错误与以前的 swt 版本问题不同。当我尝试运行 AZ-SVN 时:

file:/home/ozge/Documents/swt.jar ; file:/home/ozge/workspace/AZ_SVN/bin/ ; file:/home/ozge/workspace/AZ_SVN/azureus2/lib/apple-extensions.jar ; file:/home/ozge/workspace/AZ_SVN/azureus2/lib/swt-carbon.jar ; file:/home/ozge/workspace/AZ_SVN/azureus2/lib/swt-cocoa.jar ; file:/home/ozge/workspace/AZ_SVN/uis/lib/commons-cli.jar ; file:/home/ozge/workspace/AZ_SVN/uis/lib/junit.jar ; file:/home/ozge/workspace/AZ_SVN/uis/lib/log4j.jar ; file:/home/ozge/Desktop/comp491/swt-xosx.jar ; file:/home/ozge/workspace/AZ_SVN/azureus2/lib/swt-win32.jar ; file:/home/ozge/Desktop/Azureus/vuze/swt.jar ; file:/home/ozge/Desktop/Azureus/vuze/swt/swt32.jar ; file:/home/ozge/Desktop/Azureus/vuze/swt/swt64.jar ; file:/home/ozge/Desktop/Azureus/vuze/
    DEBUG::Wed Dec 18 18:57:08 EET 2013  BC Provider 'BC_VUZE' initialised successfully (loaded from file:/home/ozge/workspace/AZ_SVN/bin/org/bouncycastle/jce/provider/BouncyCastleProvider.class)
    changeLocale: *Default Language* != English (United States). Searching without country..
    changeLocale: Searching for language English in *any* country..
    changeLocale: no message properties for Locale 'English (United States)' (en_US), using 'English (default)'
    java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:534)
        at org.gudy.azureus2.ui.swt.Main.<init>(Main.java:114)
        at org.gudy.azureus2.ui.swt.Main.main(Main.java:325)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:622)
        at com.aelitis.azureus.launcher.MainExecutor$1.run(MainExecutor.java:37)
        at java.lang.Thread.run(Thread.java:701)
    Caused by: java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
        no swt-gtk-4332 in java.library.path
        no swt-gtk in java.library.path
        /home/ozge/.swt/lib/linux/x86_64/libswt-gtk-4332.so: /home/ozge/.swt/lib/linux/x86_64/libswt-gtk-4332.so: ELF file data encoding not little-endian (Possible cause: endianness mismatch)
        Can't load library: /home/ozge/.swt/lib/linux/x86_64/libswt-gtk.so

        at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
        at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
        at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
        at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
        at org.eclipse.swt.internal.Converter.wcsToMbcs(Unknown Source)
        at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
        at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.<init>(SWTThread.java:85)
        at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.createInstance(SWTThread.java:64)
        at com.aelitis.azureus.ui.swt.Initializer.<init>(Initializer.java:163)
        ... 12 more

现在有什么问题?

4

2 回答 2

0

看来您的 java.library.path 有问题

搜索您的 SWT 库并设置您的路径。也许您将不得不重新安装 SWT 或 Java。

于 2013-12-18T19:36:55.313 回答
0

Vuze 项目通过 pro-plus 支付选项被吸引到广告中,但幸运的是,一些原始开发人员在离开之前采取了分叉并创建了 BiglyBT。他们的第一个分支几乎是相同的,除了:它没有充满广告,不包含任何高级功能并且不会为升级而烦恼。

https://github.com/BiglySoftware/BiglyBT

有关 BiglyBT 和 Vuze 之间差异的更多信息:

https://www.ghacks.net/2017/08/05/biglybt-new-vuze-based-torrent-client-without-ads/

我试图在 Eclipse 中构建 Vuze 上次我被他们所有的错误所困扰,但项目有点乱,有 Bugzilla(世界上最糟糕的错误跟踪器 IMO),我无法得到它工作要么:依赖问题的兔子洞。

试一试 BiglyBT,它很容易启动并运行。现在都是 GitHub,开放,没有 BugZilla,这是一个很大的改进。

于 2019-04-27T20:16:56.103 回答