When I tried to do so with command java -jar samplewebdrivercode.jar
then I found Manifest error.
Is it possible to do so?
When I tried to do so with command java -jar samplewebdrivercode.jar
then I found Manifest error.
Is it possible to do so?
Your file does not conform to the requirements of jar executable
Which should have an manifest file with Main-Class
attribute if you want to run with -jar
option.
Alternatively you can run the jar by specifying the class path with -cp
or -classpath
option, where the class should have an entry point i.e. main method.
The call can be done like this
java -classpath app.jar your.package.name.MainClass