Error opening zip file or JAR manifest missing : elastic-apm-agent-1.7.0.jar

APM Agent language and version:
Java-1.7.0
Original install method (e.g. download page, yum, deb, from source, etc.) and version:
https://search.maven.org/search?q=a:elastic-apm-agent
Fresh install or upgraded from other version?
Fresh install
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
When I try to run

/usr/local/java/jdk1.8.0_171/bin/java -XX:+UseG1GC -Xms512m -Xmx768m -javaagent:~/elastic-apm-agent-1.7.0.jar \ -Delastic.apm.service_name=authenticatio
n-api-node2 \ -Delastic.apm.server_url=http://localhost:8200 \ -Delastic.apm.secret_token= \ -Delastic.apm.application_packages=com.digitalfactory.kerberos.authenticationapi \ -j
ar /usr/local/project/api/authentication-api-node2/authentication-api-node2.jar

server shows me on console the follow:

Error opening zip file or JAR manifest missing : ~/elastic-apm-agent-1.7.0.jar
Error occurred during initialization of VM
agent library failed to init: instrument

Provide logs and/or server output (if relevant):

Error opening zip file or JAR manifest missing : ~/elastic-apm-agent-1.7.0.jar
Error occurred during initialization of VM
agent library failed to init: instrument

Welcome to the forum @hikozzaru, and thanks for checking out Elastic APM!

The problem here is that -javaagent does not expand "~" in jar paths. You will need to pass in the full path.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.