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, 2020 in Jenkins by akhtar
• 38,230 points
12,158 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, 2020 by MD
• 95,440 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,610 points
7,822 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,680 points
2,972 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, 2020 in Jenkins by Gitika
• 65,910 points
5,145 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, 2020 in Jenkins by Blackbuild
2,966 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,527 views
+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,440 points
4,963 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP