diff --git a/bindings/java/src/net/hyperic/sigar/ptql/ProcessQueryBuilder.java b/bindings/java/src/net/hyperic/sigar/ptql/ProcessQueryBuilder.java index 880ebdb0..aab78868 100644 --- a/bindings/java/src/net/hyperic/sigar/ptql/ProcessQueryBuilder.java +++ b/bindings/java/src/net/hyperic/sigar/ptql/ProcessQueryBuilder.java @@ -820,7 +820,7 @@ public class ProcessQueryBuilder { } byte[] bytecode = this.generator.getJavaClass().getBytes(); - ClassLoader parent = ClassLoader.getSystemClassLoader(); + ClassLoader parent = this.getClass().getClassLoader(); ClassLoader cl = new ProcessQueryClassLoader(parent, bytecode); Class genclass;