Comparing version 0.3.1 to 0.3.2
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"engines": { | ||
@@ -30,3 +30,3 @@ "node": ">=0.6.0" | ||
"dependencies": { | ||
"find-java-home": "0.0.6" | ||
"find-java-home": "0.0.7" | ||
}, | ||
@@ -33,0 +33,0 @@ "devDependencies": { |
@@ -7,3 +7,3 @@ # java | ||
## Installation Linux/Windows | ||
## Installation Linux | ||
@@ -19,2 +19,15 @@ ```bash | ||
this means that your JAVA_HOME is not set correctly and you need to verify the location of libjvm.so or jvm.lib. | ||
* If you see an error such as "Call to 'node findJavaHome.js' returned exit status 1" | ||
Try running `node findJavaHome.js` in the node-java directory to see the full failure message. | ||
* If you are having problems finding 'jni.h'. Make sure you have the JDK installed not just the JRE. If you are using | ||
OpenJDK you want the openjdk-7-jdk package, not openjdk-7-jre. | ||
## Installation Windows | ||
```bash | ||
$ set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_18\ | ||
$ npm install java | ||
``` | ||
Notes: | ||
* If you see an error such as "Error: The specified module could not be found. | ||
@@ -24,6 +37,12 @@ xxxxxx\node_modules\java\build\Release\nodejavabridge_bindings.node". | ||
This path cannot have quotes. | ||
* node-gyp requires python 2.x not python 3.x. See https://github.com/TooTallNate/node-gyp/issues/155 for more details. | ||
* For 64 bit installs with 32 bit node | ||
* you need the 32 bit JDK, with the 64 bit JDK you will see LNK2001 | ||
errormessages (http://stackoverflow.com/questions/10309304/what-library-to-link-to-on-windows-7-for-jni-createjavavm). | ||
* when using the windows SDK 7.1 command prompt (64 bits) be sure to setenv.cmd /Release /x86 | ||
* If you see an error such as "Call to 'node findJavaHome.js' returned exit status 1" | ||
Try running `node findJavaHome.js` in the node-java directory to see the full failure message. | ||
* If you are having problems finding 'jni.h'. Make sure you have the JDK installed not just the JRE. If you are using | ||
OpenJDK you want the openjdk-7-jdk package, not openjdk-7-jre. | ||
## Installation Mac | ||
@@ -447,8 +466,10 @@ | ||
One option to capture these events is to add the following. | ||
One option to capture these events is to add the following flag: | ||
``` | ||
```javascript | ||
java.options.push('-Xrs'); | ||
``` | ||
As `man java` says, the `-Xrs` flag will “reduce usage of operating-system signals by [the] Java virtual machine (JVM)”, to avoid issues when developing “applications that embed the JVM”. | ||
## Signal Handling Option 2 | ||
@@ -455,0 +476,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2281716
532
+ Addedfind-in-path@0.0.1(transitive)
+ Addedfind-java-home@0.0.7(transitive)
- Removedfind-java-home@0.0.6(transitive)
Updatedfind-java-home@0.0.7