In TestNG DataDriven Live Project--How to add Listener to the suite,in the downloaded code ,line has been commented.when commented the line getting below error
Exception in thread "main" org.testng.TestNGException:
Cannot instantiate class com.listener.MyTestNGListener
at org.testng.internal.ClassHelper.newInstance(ClassHelper.java:67)
at org.testng.TestNG.addListeners(TestNG.java:1012)
at org.testng.TestNG.initializeConfiguration(TestNG.java:976)
at org.testng.TestNG.run(TestNG.java:1102)
at com.runner.TestNGRunner.run(TestNGRunner.java:83)
at com.runner.JSONRunner.main(JSONRunner.java:108)
\
Line 40 in the below screen-shot