Vuze Forums

Full Version: Unable to start console UI on Linux
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

When I'm running Vuze with the --ui=console option:




Code:
$ java -Xmx256m -cp "./Azureus2.jar:./swt.jar" -Djava.library.path="/path/to/vuze_dir" -Dazureus.install.path="/path/to/vuze_dir" -Dazureus.script="./vuze-console" -Dazureus.script.version=5 org.gudy.azureus2.ui.swt.Main --ui=console

I get:




Code:
[alert] Alert:3:Failed to access torrent file '--ui=console'. Ensure sufficient temporary file space available (check browser cache usage).

This command normally runs fine with the GUI (without --ui=console).

Why does it considers this option to be a torrent file? There's no quotes around the option name!

Environment:
- Beta Azureus 5711-B04
- Ubuntu 15
- OpenJDK 7 or Orcale Java 8, same result
- Installation from official Vuze website package (no repository version / no apt-get).
Use

org.gudy.azureus2.ui.common.Main --ui=console

NOT

org.gudy.azureus2.ui.swt.Main --ui=console
Thanks parg. I'll add this to the wiki once it will be runnign fine.

However I now face a new problem:
Code:
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/CommandLine

Clearly, there's no org/apache/commons/cli/CommandLine in the official Azureus5711-BXX.jar file.

EDIT:
I'm very probably need to add one of these to the classpath: openjdk sunmin5  log4j-1.2 commons-cli
The startup script can't find them by itself.
Still the same issue :/




Code:
java -Xmx256m -cp "./Azureus2.jar:./swt.jar:/usr/share/java/commons-cli.jar:/usr/share/java/log4j-1.2.jar" -Djava.library.path="/path/to/vuze_dir" -Dazureus.install.path="/path/to/vuze_dir" -Dazureus.script="./vuze-console" -Dazureus.script.version=5 org.gudy.azureus2.ui.common.Main --console=ui
...
[alert] Alert:3:Failed to access torrent file '--console=ui'. Ensure sufficient temporary file space available (check browser cache usage).
Right, you need some additional jars for the console ui - from 

http://wiki.vuze.com/w/Console_UI

In order to run Azureus headless, you will need to grab a few support jars (log4j and commons-cli) listed on the SVN server:http://svn.vuze.com/public/client/trunk/uis/lib/

The argument is

--ui=console

NOT

--console=ui
My bad. That's working fine now.

I'll update the wiki page for console UI and initial setup guide for jar files.

Thank you!