diff --git a/src/bindings/java/SConscript b/src/bindings/java/SConscript
index 7ddcb40eb8658d23b186c1093e18b8b82026c260..4690f5011f93537b625e4d61d3c3289f4fa0370f 100644
--- a/src/bindings/java/SConscript
+++ b/src/bindings/java/SConscript
@@ -19,6 +19,6 @@ classes = javaenv.Java(target = 'classes', source = '#src/bindings/java/jsrc')
 jni_headers = javaenv.JavaH(target = 'csrc', source = classes)
 
 native_src = PrependDir('csrc', csources)
-libhammer_java = javaenv.SharedLibrary('libjhammer', [native_src, libhammer_shared])
+libhammer_java = javaenv.SharedLibrary('libjhammer', native_src, LIBS=['hammer'], LIBPATH='../../')
 hammer_jar = javaenv.Jar('hammer.jar', 'classes')
 Default(libhammer_java, hammer_jar)
\ No newline at end of file