Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
103
rated 0 times [  104] [ 1]  / answers: 1 / hits: 28069  / 8 Years ago, fri, june 10, 2016, 12:00:00

Is it possible to do the same as this in Eclipse what he is doing in Intellij IDEA? to run the javascript file in console?


More From » node.js

 Answers
10

To set up Eclipse to run JavaScript files:




  1. In Eclipse, got to Run > External Tools > External Tool Configurations


  2. Double click on Program to open a new configuration and name your new configuration (ex. Node_Config)


  3. Figure out where you have node.js installed. Paste the results in the 'Location' box in Eclipse. (If you haven't installed node, do so here)




    1. Mac: in the command line, run which node.

    2. Windows: in the command line, run where node, or see this for more/different windows advice


  4. Fill in the following:




    1. Working Directory: ${container_loc}

    2. Arguments: ${resource_name}


  5. Click apply, and then close.




Now, in the main Eclipse screen, find the play button with a red toolbox (next to the regular play button). When you have a js file open that you want to run, click this and it will be just like running it from your console using node.


[#61822] Wednesday, June 8, 2016, 8 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jovanymarshalld

Total Points: 676
Total Questions: 94
Total Answers: 81

Location: Thailand
Member since Thu, Apr 22, 2021
3 Years ago
;