Skip to content

"Could not find agent library native-image-agent on the library path" #1057

@simonDeHero

Description

@simonDeHero

Hi,
i would like to use the native-image-agent like described here. but i get the following error

$ /opt/graalvm-ce-1.0.0-rc13/bin/./java -jar -agentlib:native-image-agent=output=./trace-file.json app.jar
Error occurred during initialization of VM
Could not find agent library native-image-agent on the library path, with error: libnative-image-agent.so: cannot open shared object file: No such file or directory

i get basically the same error, when i use the JAVA_TOOL_OPTIONS:

$ export JAVA_TOOL_OPTIONS="-agentlib:native-image-agent=output=/tmp/trace-file.json"
$ /opt/graalvm-ce-1.0.0-rc13/bin/./java -jar app.jar
Picked up JAVA_TOOL_OPTIONS: -agentlib:native-image-agent=output=/tmp/trace-file.json
Error occurred during initialization of VM
Could not find agent library native-image-agent on the library path, with error: libnative-image-agent.so: cannot open shared object file: No such file or directory

i use graalvm rc13.

thx for having a look!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions