Skip to content

Node applications not working #176

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

Closed
karan-kapoor90 opened this issue Nov 3, 2014 · 9 comments
Closed

Node applications not working #176

karan-kapoor90 opened this issue Nov 3, 2014 · 9 comments

Comments

@karan-kapoor90
Copy link

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

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

paulvi commented Nov 4, 2014

Please share link to SO question

@karan-kapoor90
Copy link
Author

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

paulvi commented Nov 11, 2014

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

paulvi commented Nov 11, 2014

mark as duplicate of #72

@ghost
Copy link

ghost commented Nov 11, 2014

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

paulvi commented Nov 11, 2014

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

@nodeleaf Please create new issue if to continue

@karan-kapoor90
Copy link
Author

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

paulvi commented Nov 11, 2014

see #179

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

No branches or pull requests

2 participants