Splunk AppDynamics

Machine Agent error "Could not find the main class: com.appdynamics.agent.sim.bootstrap.Bootstrap. Program will exit."

Lidiane_Wiesner
New Member

Hello everyone,

I am using the Machine Agent without the bundle version 22.6 as indicated in past releases in docs. When I run java -jar machineagent.jar, I get the error:
Could not find the main class: com.appdynamics.agent.sim.bootstrap.Bootstrap. Program will exit.

I ran the command jar tf machineagent.jar | grep com/appdynamics/agent/sim/bootstrap/Bootstrap.class, and it shows up, so I don't understand what I'm doing wrong. Can you help me?

(doc: https://docs.appdynamics.com/appd/24.x/latest/en/product-and-release-announcements/past-releases/pas...)

Labels (1)
0 Karma
1 Solution

tezza_chen
Path Finder

What's the Java version on the host machine? I think it should be >= 1.8
Also, try providing the absolute path of java (i.e. >= 1.8) when starting the machine agent.

regards

View solution in original post

0 Karma

iamryan
Community Manager
Community Manager

Hello @Lidiane.Wiesner,

@Terence.Chen had some follow-up questions for you to help find a solution to your question? If this is still an issue, reply with that info to keep the conversation going. 

0 Karma

tezza_chen
Path Finder

What's the Java version on the host machine? I think it should be >= 1.8
Also, try providing the absolute path of java (i.e. >= 1.8) when starting the machine agent.

regards

0 Karma

iamryan
Community Manager
Community Manager

Hello @Lidiane.Wiesner,

I did some digging around and I've seen people suggesting to make sure java is running on a supported environment. 
https://docs.appdynamics.com/appd/24.x/24.5/en/application-monitoring/install-app-server-agents/java...

0 Karma
Get Updates on the Splunk Community!

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...

AppDynamics is now part of Splunk Ideas

Hello Splunkers, We have exciting news for you! AppDynamics has been added to the Splunk Ideas Portal. Which ...

Advanced Splunk Data Management Strategies

Join us on Wednesday, May 14, 2025, at 11 AM PDT / 2 PM EDT for an exclusive Tech Talk that delves into ...