Complicated command-line args for executable JAR

I have a fizz.jar that contains a FizzDriver class that has a main entry point:

public class FizzDriver {
    public static void main(String[] args) {
        if(args.length == 1 && args[0] != null)

    // Expects "fileName" to be something like "whatever.log".
    public static void processFile(String fileName) {
        // Process the file

I have made sure in MANIFEST.MF to set Main-Class to be my FizzDriver.

Now, fizz.jar requires 4 other JARs as dependencies:

  • a.jar
  • b.jar
  • c.jar
  • d.jar

How do I run fizz.jar (FizzDriver) from the command-line, while passing it both a file name to process as its sole arg, as well as a classpath that contains my 4 JAR dependencies?

My best attempt so far has been:

java -jar fizz.jar -cp a.jar b.jar c.jar d.jar "whatever.log"

But that is not working. Ideas? Thanks in advance!


Need Your Help

Flash video not stopping in jQuery slider

jquery flash jquery-plugins

I have a slider which has 2 slides, on each slide I loaded flash videos.

cannot convert parameter 1 from 'char *' to 'uint8_t *'

c++ memory

void OnReceived(std::shared_ptr<uint8_t> buffer, int len) {

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.