Closed broadbear closed 10 years ago
Just check related code https://github.com/Nodeclipse/nodeclipse-1/blob/master/org.nodeclipse.ui/src/org/nodeclipse/ui/preferences/PreferenceInitializer.java#L135-158
and you see that it can't just find node executable in any places that are usual. So you just need to install Node.js that is likely missing.
If you really have Node.js executable as nodejs
and not node
, please continue and give more exactly details about paths, why it is so...
A workaround to Eclipse unable to start could be to put some file named node
in some standard paths where it should be. Then start Eclipse and specify other Node path.
The bad thing is that I can't really check how it work on Ubuntu and in situation you described.
Could you please get code and build.
Here is some additional information: http://stackoverflow.com/questions/18130164/nodejs-vs-node-on-ubuntu-12-04
A workaround is to create a symlink: sudo ln -s /usr/bin/nodejs /usr/bin/node
OK, so it is about using Node installed with https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#ubuntu-mint
I think there should be symlink /usr/bin/node
anyway (to run conveniently from command line)
Then Nodeclipse should catch up /usr/bin/node
as standard Lunix location.
So while throwing Exception is removed, no new code is needed to handle this special case.
Or better
sudo update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10
After a new installation of eclipse/nodeclipse plugin on ubuntu 14, I was unable to restart eclipse. I see the below error in .log. It looks like the binary name is hard coded in the PreferenceInitializer class as 'node', however, on ubuntu there is a package name conflict, so the binary is named 'nodejs.'