I am completely new to java and I need to just run an application I downloaded off the internet. The application in question is the "spinn3r" client found here: http://code.google.com/p/spinn3r-client/downloads/detail?name=spinn3r-client-3.4.06.tar.gz
I extracted the tar.gz and found a .jar file. I then ran:
java -jar applicationName.jar
I get the following error:
no main manifest attribute, in spinn3r-client-3.4.06.jar
How do I fix this?
解决方案
As @Alderath mentioned, this is primarily an API which you can use in your own applications. Nevertheless, the jar file also contains a test client which you can launch as follows:
$ java -cp spinn3r-client-3.4.06.jar com.spinn3r.api.Main
Usage: com.spinn3r.api.Main [OPTION]
Required params:
...
Since this it is not an executable jar file, you need to pass the required jar files and the class which contains the main method explicitly.