I want to run Selenium tests written in TestNG framework using Jenkins.
The command configured in jenkins job (Freestyle project):
java -cp J:\\taf\\tes
As suggested by Mackowski, installed Jenkins in tomcat as a webapp (instead of Windows Service) and it solved the issue.
Reference:
Note: When we run the tests when deployed Jenkins as Windows Service, no browser GUI is launched/observed. Jenkins inside tomcat, browser GUI is launched.