AppD Archive

Invalid ELF Header occurs while starting java agent

CommunityUser
Splunk Employee
Splunk Employee

Hi,

I'm facing a weird error while starting the java agent. I've just downloaded the last agent version and run in my environment.

$ java  -agentpath:$HOME/tmp/javaagent.jar -jar myapp.jar

Error occurred during initialization of VM
Could not find agent library /home/jairson/tmp/javaagent.jar in absolute path, with error: /home/jairson/tmp/javaagent.jar: invalid ELF header (Possible cause: endianness mismatch)


$ java -version

java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

$ uname -a

Linux jpad227225 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

I did not find any issue like this involving AppDynamics agent. Can someone give me some direction?

Thanks,

Jairson Cabral

Tags (3)
0 Karma
1 Solution

CommunityUser
Splunk Employee
Splunk Employee

SOLVED!

DONT USE  -agentpath

USE -javaagent

View solution in original post

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

SOLVED!

DONT USE  -agentpath

USE -javaagent

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...