ICIJ / node-tika

Apache Tika bridge for Node.js. Text and metadata extraction, language detection and more.
MIT License
140 stars 36 forks source link

Clarification: Does node-tika require JDK 1.7 or above, or only JDK 1.7? #20

Open owendall opened 7 years ago

owendall commented 7 years ago

image

I am on Mac OS X Sierra. I tried using the "jabba" jvm version manager so I could map to 1.7 before building node-tika, but got errors.

Now the npm install worked, but I get the message in the screen shot I have included.

Suggestions?

moxious commented 7 years ago

I've run into this many times. I can't describe exactly why this is required, but for OS X you need this legacy package: https://support.apple.com/kb/dl1572?locale=en_US

Please give this some time though -- it's not actually a good idea to install that legacy package, because it's very old and has vulnerabilities in it, but in my experience this has been the only way to get node-tika to work on OSX.

owendall commented 7 years ago

@moxious Thanks much for that..

pratheekrebala commented 5 years ago

For anyone else facing this issue - it's possible to avoid installing the old version of installing java by manually adding JNI to the list of JVMCapabilities in /Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Info.plist (or equivalent)

This issue and solution are discussed here: https://github.com/joeferner/node-java/issues/90#issuecomment-45613235