Question

I'm trying to run jpenable on a standard java application in our remote server but I'm getting an error saying that:

ERROR: The agent could not be loaded: Failed to load agent library

Server OS: Linux debian-server 2.6.32-5-amd64 #1 SMP Sat Mar 31 04:00:05 UTC 2012 x86_64 GNU/Linux

System variables:

LD_LIBRARY_PATH="/home/dev/jprofiler7/bin/linux-x64"
PATH="/home/dev/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/java/default/bin:/home/dev/jprofiler7/bin/linux-x64"

Java options:

JAVA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.net.preferIPv4Stack=true "
JAVA_OPTS="$JAVA_OPTS -Djavax.net.ssl.trustStore=$HOME/keystorage/cacerts.jks -Djavax.net.ssl.trustStorePassword=$CACERTS_PASSWORD"

Any help would be appreciated.

Was it helpful?

Solution

Got it to work. Problem was that the server machine uses 32-bit Java even if it's running 64-bit OS. I also had to download ia32-libs as I had missing dependencies as well.

There was also no need to modify/add LD_LIBRARY_PATH and PATH.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top