Professioneller Internetsüchtiger • Spiele-Enthusiast • Technik-Entwickler
Professioneller Internetsüchtiger • Spiele-Enthusiast • Technik-Entwickler

So führen Sie eine node.js-Anwendung in Eclipse als externes Tool aus

Hier ist eine Kurzanleitung zum Starten von Node.JS-Anwendungen in der Eclipse IDE, ohne externe Plugins installieren zu müssen!
Diese Seite wurde von meinen hochmotivierten KI-Praktikanten zu Ihrer Information aus dem Englischen übersetzt. Sie befinden sich noch in der Lernphase, daher können sich einige Fehler eingeschlichen haben. Die genauesten Informationen finden Sie in der englischen Version.
Heim Blog So führen Sie eine node.js-Anwendung in Eclipse als externes Tool aus

Bitte beachten Sie, dass dieser Blogbeitrag im Juli 2012 veröffentlicht wurde. Je nachdem, wann Sie ihn lesen, können Teile veraltet sein. Leider kann ich diese Beiträge nicht immer auf dem neuesten Stand halten, um die Richtigkeit der Informationen zu gewährleisten.

    If you like using Eclipse as your preferred IDE for your coding, there is an easy way to use the built in External tools feature in Eclipse to launch Node.js applications, without having to install any external plugins.
    Here is a short guide how.

    The Hello World JavaScript project

    Here is a simple overview of a typical Hello World application in JavaScript that prints out the phrase "Hello World" to the console.log.
    Screenshot of a JavaScript file in Eclipse

    Creating the External tool launcher

    To launch this, we need to create a custom External tool launch configuration. Start by opening up your External tool configurations.
    This can by done by going "Run" - "External Tools" - "External Tools Configurations...", or by clicking on the External tools shortcut in the toolbar:
    External tool configuration
    Select "Program" and then click on the "New launch configuration" button:
    New launch configuration
    Once the configuration window opens, do the following:
      static.specialagentsqueaky.com example "node.js - Hello World".
    1. "Location" should point towards node.js launch command, for Window-users this can point directly to node.exe.
    2. "Working Directory" should points towards your project. This can be done by clicking on the "Browse Workspace..." button.
    3. Enter the name of the JavaScript file you want node.js to execute. In my case it is "main.js".
    4. Apply and close the window.
    Settings

    Running your application

    Your launch configuration is now ready to be called from the "External tool" button:
    Launching the app
    Running it will use the console view in Eclipse for the output:
    Console

    Verfasst von [Name]. Erstveröffentlichung: 29.07.2012. Letzte Aktualisierung: 29.07.2012.

    📺 Schau dir das neueste Video von Squeaky an!

    So fügen Sie Ihrem Live-Stream einfache Untertitel in Echtzeit hinzu.