Error: Unable to access jarfile agent.jar

0 votes

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
• 14,650 points
352 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
• 32,810 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
• 9,940 points
940 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
298 views
0 votes
1 answer

unable to compile java code in Jenkins

If the code is compiling and running ...READ MORE

answered Apr 25, 2018 in Jenkins by DareDev
• 6,850 points
673 views
0 votes
1 answer

Error while talking to remote Oracle DB using Jenkins-CI

I installed Oracle XE to talk to ...READ MORE

answered May 1, 2018 in Jenkins by shubham
• 6,910 points
489 views
+13 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,420 points
540 views
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
• 32,810 points
204 views