<p>I am trying to run a java based tool using a command line syntax as the following: java -cp archive.jar archiveFolder.theMainClassName.Although the class I am searching for, a main class, "theMainClassName" is in the archive.jar and in the archiveFolder given at input, I keep getting the error that my class is not seen. Does anybody have any ideas concerning this problem? Thank you in advance</p>

Perhaps with
```
java -jar archive.jar
```
?
Of course, it supposes the manifest points to the right class...
You should give the exact message you got, it might shed more light.
EDIT:  See
Working with Manifest Files: The Basics
for information on setting the application entry point (Main class) in your jar manifest file.