View Full Version : Downloaded .jar file of Azureus and it's not working

January 9th, 2010, 08:17 AM
First of all, I'm purposely avoiding the repositories. I'm not interested in the program itself but the fact that it is written in Java. (maybe I will be interested in it when I use it)

I renamed the .jar file I downloaded as "az.jar" without the quotes and placed it on my desktop.

Here is my problem:

deniz@debian:~$ cd Desktop
deniz@debian:~/Desktop$ java -jar az.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.ParseException
at java.net.URLClassLoader$1.run(URLClassLoader.java: 217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 19)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 64)
Could not find the main class: org.gudy.azureus2.ui.common.Main. Program will exit.

Why am I getting this message and what can I do about it?

Any help would be greatly appreciated!
Thanks in advance!

Running my own (basic) program that I made and saved as a .jar file works so I assumed this would work too and was actually shocked when it didn't.

January 9th, 2010, 10:01 AM
My hunch is that maybe somehow, thats not the full program. Clearly something is either missing or possibly just missing from the classpath. Given that, maybe someone else and provide some more insight than I.

January 9th, 2010, 02:44 PM
Azureus doesn't run by directly launching the .jar file.
The official site provides an archive with lots of stuff in it, unzip it, you should run the corresponding batch/shell script instead, it takes care of environment initialization and other stuff and then launches Azureus.