Looking at java.so content we can find the PATH from which it will try
load the libjvm.so

> prompt$ strings /usr/lib/collectd/java.so | grep jre
> /usr/lib/jvm/default-java/jre/lib/amd64/server

So I have symlinked this *default-java* to my actual *java-7-oracle*
install

> prompt$ ln -sf /usr/lib/jvm/java-7-oracle /usr/lib/jvm/default-java

My plugin is now loaded and ready to use.

---
ubuntu trusty 14.04.2 LTS

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/568234

Title:
  java plugin does not work with non-openjdk java

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/collectd/+bug/568234/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to