Nodeclipse / nodeclipse

Nodeclipse-1 : Eclipse plugin for Node.js, PhantomJS development (Nodeclipse core plugin); Maven and Gradle (with Android) plugins
https://nodeclipse.github.io/
158 stars 76 forks source link

Node applications not working #176

Closed karan-kapoor90 closed 10 years ago

karan-kapoor90 commented 10 years ago

Hi

I've tried with both, eclipse Luna 4.4.1 and the latest version of Enide studio. Applications that I create using either of these IDE's don's run. When I right clink on the main .js file and choose to run as a node application, the console heading changes to " -app.js [Node Application] Node.js Process" . Basically the http server in the process doesnt start. I manage to run the same application successfully from the command prompt.

I'm running on windows 7, with node version 0.10.24 installed on my machine. Applications started from the command prompt work just fine.

Contents of the IDE log are as follows:

image

image

karan-kapoor90 commented 10 years ago

Figured out the issue through SO. I was running on java version 1.6. Updating to any version over 1.7 fixed the issue.

paulvi commented 10 years ago

Please share link to SO question

karan-kapoor90 commented 10 years ago

The SO link is - http://stackoverflow.com/questions/21340527/nodeclipse-unable-to-run-even-the-simplest-app

and its reference link is - https://github.com/Nodeclipse/nodeclipse-1/blob/master/org.nodeclipse.help/contents/run.md#running

However I would like to mention that I did not uninstall anything but the old java version. I just uninstalled the old java version, installed the latest JDK, fixed environment variables and restarted!

Thanks for all that info.

paulvi commented 10 years ago

I just uninstalled the old java version, installed the latest JDK,

BTW, It is possible to have several Java JDK in a system and tell eclipse in eclipse.ini which one to use

paulvi commented 10 years ago

mark as duplicate of #72

ghost commented 10 years ago

It reads -Dosgi.requiredJavaVersion=1.6 in eclipse.ini (hidden within Eclipse.app bundle in macosx). Does it mean it uses java 1.6 when 1.8 was installed on this system?

paulvi commented 10 years ago

https://wiki.eclipse.org/Eclipse.ini

@nodeleaf Please create new issue if to continue

karan-kapoor90 commented 10 years ago

Thanks Paul. I am aware that we can have multiple JDK's installed. Checking the java version on cmd gave me the new version but nodeclipse was still using the old version. So instead of changing, and for purposes of not untidying the system, I thought it'd be better to have just one version.

Thanks for all the help.

paulvi commented 10 years ago

see #179