Error Unable to access jarfile agent jar

+1 vote

Hello Everyone,

I am trying to run Jenkins command to set windows system as a node in Jenkins. But it shows me the below error.

C:\Users\Nadeem Akhter>java -jar agent.jar -jnlpUrl -secret 3c2c8b04aab0a735d5d72f3ce1c9cec43c5fc4a74e1ba4e39f9a2bc7b14319c0 -workDir "D:\myjenkins"
Error: Unable to access jarfile agent.jar

How can I solve this error?

May 29, 2020 in Jenkins by akhtar
• 38,210 points

1 answer to this question.

0 votes


Whenever we try to connect windows system as a node in Jenkins, we use JNLP protocol. This JNLP will try to find one agent.jar file in windows system to connect with Jenkins master node

So to avoid any error, make sure your windows system has agent.jar file. 

answered May 29, 2020 by MD
• 95,320 points

Related Questions In Jenkins

+1 vote
1 answer

Unable to access Jenkins. I newly installed Jenkins but for some reason I cannot access it.

Try changing the port, Change JENKINS_AJP_PORT="xyz" to JENKINS_AJP_PORT="abc" If changing the ...READ MORE

answered Jul 4, 2018 in Jenkins by Sophie may
• 10,550 points
0 votes
1 answer

An error “Unable to create the home directory ‘JENKINS_HOME’”

This is most probably a permission problem. You ...READ MORE

answered Jul 19, 2018 in Jenkins by Kalgi
• 2,680 points
+1 vote
2 answers

I'm unable to build my code in Jenkins. Getting the error shown below.

Hi, @Ashutosh, Do you have a pom.xml in ...READ MORE

answered Aug 3, 2020 in Jenkins by Gitika
• 65,970 points
0 votes
1 answer

Error " unable to parse POM" while build on Jenkins

Maven tries to read /root/.jenkins/workspace/test tools as ...READ MORE

answered Oct 8, 2020 in Jenkins by Blackbuild
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
+1 vote
1 answer
0 votes
1 answer

fatal: unable to auto-detect email address (got 'jenkins@master.(none)')

Hi@akhtar, You tried to merge your branch in ...READ MORE

answered May 7, 2020 in Jenkins by MD
• 95,320 points