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

install fails on ubuntu #35

Closed
advanced opened this issue Dec 23, 2012 · 9 comments
Closed

install fails on ubuntu #35

advanced opened this issue Dec 23, 2012 · 9 comments

Comments

@advanced
Copy link

I have tried all the combo possible, but I still get the No rule to make target `jre/lib/amd64/server/libjvm.so' error

export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64/
or
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64/
or
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64

my python is 2.7 , node gyp 0.7,1 and node is 0.8.14

/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so is present so I'm not sure what the error is.
java home is working of for my other stuff I'd appreciate some help thanks

@advanced
Copy link
Author

I have forked the repo and hardcoded the reference to $(JAVA_HOME) in binding.gyp and managed to install it.

@joeferner
Copy link
Owner

Strange. I can't reproduce this behavior. I'll leave the issue open.

@blaacka
Copy link

blaacka commented Jan 29, 2013

I have the same problem in ubuntu.

when I execute the command :

$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
$ npm install java

I get the following error "/jre/lib/amd64/server/libjvm.so', needed by 'build/depsVerified'. Stop."

@atrniv
Copy link

atrniv commented Feb 9, 2013

I'm getting the same issue as well on Ubuntu with the zsh shell. I used advanced's fix and hard coded the path and everything worked again.
I think the JAVA_HOME environment is not being found by bindings.js

@mscdex
Copy link
Contributor

mscdex commented Mar 28, 2013

You might look into using command expansion for setting a gyp variable for the JAVA_HOME path. Setting the variable's value to something like <!(echo $JAVA_HOME) for *nix and something like <!(echo %JAVA_HOME%) for Windows. Then use gyp variable expansion where you need it.

@joeferner
Copy link
Owner

Thanks @mscdex I've updated the binding.gyp file using command expansion. Still works for me on Ubuntu, don't have a windows box I can try it on right now.

@matt-way
Copy link

matt-way commented Oct 1, 2013

Just thought I would mention I am having the same problem on latest ubuntu.

@jsdevel
Copy link
Collaborator

jsdevel commented Dec 21, 2013

@matt-way @mscdex @atrniv @blaacka Can you clone my fork locally and try building that? Here's the URL: https://github.com/jsdevel/node-java.git

I currently have PR for issue #94 open and I believe it will solve issues like this.

@jsdevel
Copy link
Collaborator

jsdevel commented May 23, 2014

@joeferner this can probably be closed out.

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

7 participants