These are errors I am facing while I am trying to export and run on aws instance. So please help me out with issue. Where should exactly keep that main method in the code. It is running fine before adding main method with testNG but for runnable jar I need to run with java and then it is giving errors.