Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

java

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

java - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

4

package.json

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc