Reputation: 5351
Is it possible to use external command line tools in Netbeans?
Thank you.
Upvotes: 7
Views: 2526
Reputation: 117
In since at least version 9.0, there are two decent options:
Just create a script file. (I think you need the C++ plugin for this. Otherwise you have to create it outside NetBeans or as a text file.) In my case I created a JLinkGDBServer.sh that just executes JLinkGDBServer as a prerequisite to start an embedded debug session. This automatically sends the executable's output to a NetBeans terminal.
Add a tool to Tools/Options/Miscellaneous/SendTo. SendTo is a pop-up menu item for certain project entities, for example files but not the project. In my case, I could add a SendTo running the executable and use it by right-clicking on for example the .elf file (although for the GDB server I don't need any file name as an argument).
Upvotes: 0
Reputation: 1728
The best option I've found is to use jmarsault's plugin that he calls NetBeans Command Shortcuts. This give you an icon in the command line where you can add command and terminal scripts to run. The display shows in the output window.
Installation files are available here and he has kept it up to date with the newest versions of NetBeans. NetBeans Command Shortcut plugin
Installation:
Upvotes: 0
Reputation: 2171
What about using an Ant target? Ant files are quite comfortable to run from Netbeans.
<exec executable="${executable-full-path}" ...
Upvotes: 1
Reputation: 38168
After searching and searching and searching, this feature is just missing in netbeans although it would absolutely straightforward to implement and has been ask by user for 2 more than years...
Regards, Stéphane
Upvotes: 2
Reputation: 17302
There is a Terminal window in NetBeans 7: Open the menu, Window -> Output -> Terminal
Upvotes: 1