title: How to run the node.js file in net beans?
body: <p>In net beans i have installed node.js pulgin.But my sample node program is not working.Im getting error.
  This is my sample code</p>
  
  <pre><code>    var http = require("http");
      http.createServer(function (req, res) {
      res.writeHead(200, {"Content-Type": "text/plain"});
  
      res.end("Hai! welcome to node.js...!\n");
  
        }).listen(3030, "localhost");
  
  
  
     console.log("Server running at http://127.0.0.1:3030/");/* 
  </code></pre>
  
  <p>While running the above program.Im getting following error.</p>
  
  <pre><code>                  module.js:340
                   throw err;
                       ^
           Error: Cannot find module 'C:\Program Files\NetBeans 7.0.1\hello.js'
          at Function.Module._resolveFilename (module.js:338:15)
          at Function.Module._load (module.js:280:25)
          at Function.Module.runMain (module.js:497:10)
          at startup (node.js:119:16)
          at node.js:903:3
  </code></pre>
  
  <p>But the above program works from the terminal.</p>