cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to access jarfile agent.jar

SOLVED
steventwerd
Occasional Contributor

Unable to access jarfile agent.jar

Hi,

After creating a Node as instructed by the documentation to connect to Jenkins, the documentation says to follow the instructions to launch Jenkins agents to nodes and connecting them to Jenkins however, when I run the code in the command line I get the error: Error: Unable to access jarfile agent.jar.

Any suggestions on how to fix this?

Documentation I was following: https://support.smartbear.com/testcomplete/docs/working-with/integration/jenkins/preparing.html?sbse...

1 ACCEPTED SOLUTION

Accepted Solutions
AlexKaras
Community Hero

Re: Unable to access jarfile agent.jar

Hi,

 

Just a guess: what if you change 'java -jar agent.jar ...' to 'java -jar C:\Jenkins\agent.jar ...' ?

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

4 REPLIES 4
vinniew
Staff

Re: Unable to access jarfile agent.jar

Hi @steventwerd 

 

I hope you are well. 

 

Can you send a screenshot of the error? 

 

JAR file config issues are generally due to the path not existing or changing. 

 

Have you cross checked the location of the JAR file and verified that the arguments used /location specifed are valid? 

 

Also would you have changed the xml 

 

Do you know if you have changed the location of the JAR file ? 

 

Sorry for all the questions but it might uncover why this is happening for you 

 

Thanks 

 

Vincent 

steventwerd
Occasional Contributor

Re: Unable to access jarfile agent.jar

Hi Vincent,

Please see the screenshots below:

There are 3 screenshots of the command prompt after entering the command given to me by Jenkins, a screenshot of Jenkins telling me to put the command into the command prompt and a screenshot of the directory that I am using as the remote root directory.

 

cmd.PNGFiles.PNGJenkins.PNG

AlexKaras
Community Hero

Re: Unable to access jarfile agent.jar

Hi,

 

Just a guess: what if you change 'java -jar agent.jar ...' to 'java -jar C:\Jenkins\agent.jar ...' ?

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================

View solution in original post

steventwerd
Occasional Contributor

Re: Unable to access jarfile agent.jar

Hey Alex,

 

Thank you, that has solved my problem and the agent is now connected. Thank you, you truly are a Community Hero. xD

 

Steven

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors