Skip to content

Commit

Permalink
update readme with troubleshooting section
Browse files Browse the repository at this point in the history
  • Loading branch information
joeferner committed Oct 2, 2014
1 parent 9a53ed4 commit 3527d4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 77 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,12 @@ ShutdownHookHelper.setShutdownHookSync(java.newProxy('java.lang.Runnable', {
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.
# Troubleshooting
## Error: Cannot find module '../build/jvm_dll_path.json'
Either postInstall.js didn't run or there was a problem detecting java. Try running postInstall.js manually.
## License
(The MIT License)
Expand Down
77 changes: 0 additions & 77 deletions mnm.js

This file was deleted.

0 comments on commit 3527d4f

Please sign in to comment.