java - how to run testng test cases jar with all dependence? -


i use intelli j ide build 1 executable jar contains dependencies , test classes.

the /src/main/java/meta-inf/manifest.mf

manifest-version: 1.0 main-class: org.testng.testng

when run jar command

java -jar tahoe-test.jar org.testng.testng suites/t123.xml

i error:

error: invalid or corrupt jarfile tahoe-test.jar

if unzip jar , run command

java org.testng.testng suites/t123.xml

all works fine! why cant run jar?

try run:

java -cp tahoe-test.jar org.testng.testng suites/t123.xml 

Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -