Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
owendall opened this issue Apr 6, 2017 · 3 comments

Comments

@owendall
Copy link

owendall commented Apr 6, 2017

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
Copy link

moxious commented Apr 6, 2017

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
Copy link
Author

owendall commented Apr 8, 2017

@moxious Thanks much for that..

@pratheekrebala
Copy link

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: joeferner/node-java#90 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants