Generate Main-Class in manifest.
Use correct indexes for command line.