Skip to content

Commit 3527d4f

Browse files
committed
update readme with troubleshooting section
1 parent 9a53ed4 commit 3527d4f

2 files changed

Lines changed: 6 additions & 77 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,12 @@ ShutdownHookHelper.setShutdownHookSync(java.newProxy('java.lang.Runnable', {
551551
552552
When you call a Java method through node-java, any arguments (V8/JavaScript objects) will be converted to Java objects on the v8 main thread via a call to v8ToJava (found in utils.cpp). The JavaScript object is not held on to and can be garbage collected by v8. If this is an async call, the reference count on the Java objects will be incremented. The Java method will be invoked in a node.js async thread (see uv_queue_work). When the method returns, the resulting object will be returned to the main v8 thread and converted to JavaScript objects via a call to javaToV8 and the Java object's reference count will then be decremented to allow for garbage collection. The resulting v8 object will then be returned to the callers callback function.
553553
554+
# Troubleshooting
555+
556+
## Error: Cannot find module '../build/jvm_dll_path.json'
557+
558+
Either postInstall.js didn't run or there was a problem detecting java. Try running postInstall.js manually.
559+
554560
## License
555561
556562
(The MIT License)

mnm.js

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)