3

I have installed JavaScript Development Tools Plugin for Eclipse, but i am not able to run or debug a JavaScript Project.

I want to debug using the inbuilt Rhino Interpreter, not using a web browser.

I have created a JavaScript project and when I try to create a run configuration, it says "Please select a valid project" and the run button is greyed out..

Please view the attached snapshot.

2 Answers 2

4

Which version of eclipse are you using? Install Eclipse 3.7 Java EE Version, there you could directly right click on the javascript file (.js extension) and Debug As -> Rhino JavaScript. Please see the attached image.

Debug JavaScript

The Debug configuration will look as below. There will not be any browse for project, you need to browse directly javascript file as shown in below image (you can browse all the javascript files from the entire workspace).

Debug Configuration

Sign up to request clarification or add additional context in comments.

1 Comment

I am using eclipse 3.6...i am sure it can be done, i just don't understand the reason for it not working.
0

Apparently you didn't create a valid javascript project. Depending on your Eclipse version, this is for Juno, go to File - New - Javascript Project.

Javascript projects don't have a "nature" associated with them that let you know in the Project Explorer. Spring, Java, or even Perl projects have this in eclipse. It's a symbol assigned to a project that lets Eclipse know what type of project it is. Java projects have a "J", Spring projects have an "S".

1 Comment

I created the project using the same way, may be it was an issue with Helios

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.