Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to start console UI on Linux
#1
Bug 
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).
Reply
#2
Use

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

NOT

org.gudy.azureus2.ui.swt.Main --ui=console
Reply
#3
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.
Reply
#4
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).
Reply
#5
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
Reply
#6
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!
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Bug Vuze 5.7.10 crashes on Linux Ubuntu 14.04 LTS highlander 3 8,442 01-12-2018, 09:56 PM
Last Post: highlander
  Command Runner (azexec) for Ubuntu (and others Linux) RudyBzh 5 7,285 08-23-2016, 09:56 AM
Last Post: parg



Users browsing this thread: 1 Guest(s)