1

When I tried to do so with command java -jar samplewebdrivercode.jar then I found Manifest error.

Is it possible to do so?

NorthCat
  • 8,997
  • 16
  • 45
  • 49
Pravin W
  • 21
  • 9

1 Answers1

1

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

deimus
  • 9,154
  • 11
  • 56
  • 103