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
  • 9,643
  • 16
  • 47
  • 50
Pravin W
  • 31
  • 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,565
  • 12
  • 63
  • 107