我从官方网站下载了 Vuze,文件为 tar.bz2。设置 JRE。现在,如果我尝试执行它,它会显示
Starting Azureus...
Suitable java version found [java = 1.6.0_31]
Configuring environment...
Java exec found in PATH. Verifying...
Browser check failed with: Cannot load 64-bit SWT libraries on 32-bit JVM
Auto-scanning for GRE/XULRunner. You can skip this by appending the GRE path to LD_LIBRARY_PATH and setting MOZILLA_FIVE_HOME.
checking /usr/lib/firefox-11.0 for GRE
GRE found at /usr/lib/firefox-11.0.
Browser check failed with: Could not initialize class org.eclipse.swt.widgets.Display
Can't create browser. Will try to set LD_LIBRARY_PATH and hope Vuze has better luck.
setting LD_LIBRARY_PATH to: /usr/lib/firefox-11.0
setting MOZILLA_FIVE_HOME to: /usr/lib/firefox-11.0
Loading Azureus:
java -Xmx128m -cp "./Azureus2.jar:./swt.jar" -Djava.library.path="/home/apple/Downloads/azureus" -Dazureus.install.path="/home/apple/Downloads/azureus" -Dazureus.script="./azureus" -Dazureus.script.version=2 org.gudy.azureus2.ui.swt.Main
file:/home/apple/Downloads/azureus/Azureus2.jar ; file:/home/apple/Downloads/azureus/swt.jar ; file:/home/apple/Downloads/azureus/
changeLocale: *Default Language* != English (India). Searching without country..
changeLocale: Searching for language English in *any* country..
changeLocale: no message properties for Locale 'English (India)' (en_IN), using 'English (default)'
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.gudy.azureus2.ui.swt.Main.<init>(Main.java:114)
at org.gudy.azureus2.ui.swt.Main.main(Main.java:292)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.aelitis.azureus.launcher.MainExecutor$1.run(MainExecutor.java:37)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.UnsatisfiedLinkError: Cannot load 64-bit SWT libraries on 32-bit JVM
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:214)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:194)
at org.eclipse.swt.internal.C.<clinit>(C.java:21)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:132)
at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.<init>(SWTThread.java:84)
at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.createInstance(SWTThread.java:63)
at com.aelitis.azureus.ui.swt.Initializer.<init>(Initializer.java:162)
... 12 more
Exit from Azureus complete
No shutdown tasks to do
Azureus TERMINATED.
这是由 SWT.jar 引起的吗?如何解决?
答案1
如果您有 64 位操作系统,则从 swt 目录中获取 swt64.jar 文件并将其放入 vuze 目录中并执行 ./vuze 脚本....Bingoooooooo
你说对了
问候,
答案2
您的 Vuze(特别是 Vuze 使用的名为“SWT”的库)和 JVM 之间的字长似乎不匹配,如消息“无法在 32 位 JVM 上加载 64 位 SWT 库“(出现多次)。可能的原因有:
- 您安装了错误版本的 Vuze 或 JVM:
- 如果你有 32 位系统,那么你只能运行 32 位版本的 JVM 和 Vuze,
- 如果您有 64 位系统,则应该安装 64 位 JVM。
- 您的系统上存在库不匹配的情况(尽管我认为这个“SWT”库是与安装程序捆绑在一起的)。