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 http://10.0.0.106:8080/computer/Windows_Node/slave-agent.jnlp -secret 3c2c8b04aab0a735d5d72f3ce1c9cec43c5fc4a74e1ba4e39f9a2bc7b14319c0 -workDir "D:\myjenkins"
Error: Unable to access jarfile agent.jar

How can I solve this error?

May 29 in Jenkins by akhtar
• 28,180 points
2,017 views

1 answer to this question.

0 votes

Hello@akhtar,

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 by MD
• 65,360 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,100 points
1,531 views
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,620 points
578 views
+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 in Jenkins by Gitika
• 41,360 points
196 views
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 in Jenkins by Blackbuild
18 views
+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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
721 views
+2 votes
1 answer
0 votes
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 in Jenkins by MD
• 65,360 points
755 views