xissy / node-boilerpipe

A node.js wrapper for Boilerpipe, an excellent Java library for boilerplate removal and fulltext extraction from HTML pages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What does "WARNING: Don't forget to set JAVA variable referred to node-java." mean?

aguyinmontreal opened this issue · comments

commented

Sorry, I have some trouble understanding your instruction: "WARNING: Don't forget to set JAVA variable referred to node-java."
I'm using Windows 7. Do you mean a system variable called "JAVA", or a "PATH" system variable for "JAVA" or the "JAVA_HOME" variable? And how do you "refer" it to node-java ?

I'm asking because I can't get npm install boilerpipe to install, I always get this error:
[node-java] Error: not found: javac.exe gyp: Call to 'node findJavaHome.js' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
On https://github.com/joeferner/node-java , it says

"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."

, but there is no node-java directory anywhere on my computer and there is no findJavaHome.js file anywhere on my computer.

Thanks!

commented

I finally solved the issue myself.

If someone else has this issue, the solution is simply to install both JDK and JDE, then add the folllowing (for JDK version 9.0.1) C:\Program Files\Java\jdk-9.0.1\bin (instead of simply C:\Program Files\Java\jdk-9.0.1) to the Path variable, and then restart the computer!!! (because without a restart the environment variables are not updated in Windows)

commented

and findJavaHome.js doesn't exist, it's index.js in the find-java-home module https://github.com/jsdevel/node-find-java-home