Friends I am trying to run the testng.xml on my Linux environment , Getting below issues , I have given root access still not working.
[root@ip-172-31-2-246 website ]# sudo java -version openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
bash: allJarFiles/apache-mime4j-0.6.jar: Permission denied [root@ip-172-31-2-246 website ]# ls -ltr total 230324 drwxrwxrwx 6 jenkins jenkins 4096 Jul 25 13:52 bin
drwxrwxrwx 2 jenkins jenkins 4096 Jul 25 13:52 utility
drwxrwxrwx 7 jenkins jenkins 4096 Jul 25 13:52 src
drwxrwxrwx 2 jenkins jenkins 4096 Jul 25 14:44 allJarFiles
-rw-r--r-- 1 jenkins jenkins 1178 Jul 25 14:44 testng.xml
-rw-r--r-- 1 jenkins jenkins 144 Jul 25 14:44 bash.sh
drwxrwxrwx 2 jenkins jenkins 4096 Jul 26 07:14 inputFiles
[root@ip-172-31-2-246 website ]# set classpath= /var/lib/jenkins/workspace/WebSite/bin;
[root@ip-172-31-2-246 website ]# set classpath= /var/lib/jenkins/workspace/allJarFiles/*;
[root@ip-172-31-2-246 website]# java org.testng.TestNG testng.xml Error: Could not find or load main class org.testng.TestNG
[root@ip-172-31-2-246 website ]# sudo java org.testng.TestNG testng.xml Error: Could not find or load main class org.testng.TestNG
[root@ip-172-31-2-246 website ]# set classpath=/var/lib/jenkins/workspace/allJarFiles/*;
[root@ip-172-31-2-246 website ]# set classpath=/var/lib/jenkins/workspace/bin;
[root@ip-172-31-2-246 website ]# java org.testng.TestNG testng.xml
Error: Could not find or load main class org.testng.TestNG
[root@ip-172-31-2-246 website ]# set classpath=/var/lib/jenkins/workspace/bin;/var/lib/jenkins/workspace/allJarFiles/*;
bash: /var/lib/jenkins/workspace/allJarFiles/apache-mime4j-0.6.jar: Permission denied [root@ip-172-31-2-246 website ]#
Aucun commentaire:
Enregistrer un commentaire