Is there anyway for me to run my code in netbeans and get the output in a terminal window rather than the output window of netbeans? (I'm using netbeans 8.0.1 on ubuntu 12.04)
Thanx in advance
If you have a C++ project:
Right click on the project -> select properties -> select Run -> change console type from internal terminal to external terminal.
For Java applications, I surprisingly couldn't find any option: Use external terminal. The best I have found now is to make the output window float (right click on the output window and select float group).
For C++ projects (in newer versions of NetBeans; not sure about Java):
Left click on File -> Project Properties -> Run -> Console Type -> External Terminal
I got the terminal in Netbeans for Java,
You just need to open your project then :
select: Tools >> open in Terminal.
That's it!.
Related
So becouse of my visual studio 2017 trial is about to end, i decided to switch to vs code and make a new project. The problem is that i cant open any scripts by double-clicking in that new project using vs code. Simply nothing happens. When i go to my older project and try to open scripts there using vscode everything works fine. When i try to create new projects the problem with scripts not opening persists.
Both of the projects run on the same unity version, and both of them have vscode set as an external script editor in the preferences. Task manager doesnt show anything related to vscode.
Thanks for any help!
I had same problem where it opened up VS but not the exact script I was trying to open. I found out I had to 'reset argument' under "Edit--> Preferences --> External Tools" and just press reset argument.
Or just copy my line below:
"$(ProjectPath)" -g "$(File)":$(Line):$(Column)
External tools
You need to change your external editor to VsCode.
Go to Edit -> Preferences -> External tools
Click on the External Script Editor and browse for vscode.
I am using Eclipse Neon, and I would like to execute system commands on a shell/terminal, inside Eclipse.
In particular, I will need to open the system shell using the path of the current project folder on which I'm working in Eclipse.
In some Eclipse packages, like STS or Eclipse for JEE Developers, the Terminal is already installed in your IDE. If not, you can install the TM Terminal from the Eclipse */release update site, as you can see in the image below.
To open the command prompt (shell or terminal) using the path of a project directory inside Eclipse, you just need to select the folder, and press Ctrl+Alt+T, or right-click and select Show In Local Terminal > Terminal.
Then, the terminal will open in a new view inside Eclipse.
The Eclipse IDE which I am working there is no Terminal is there. So I needed to add the plug in like this and it works fine when you try clicking Alt+Ctrl+T
Click on Help in Eclipse-->Eclipse Marketplace--> in Find box (Search terminal and Enter)--> You will see TM Terminal 4.0 Version and just install it.
You may need to restart afterwards
And finally you will be able to get the Terminal when you will type
Alt+Ctrl+T on Console.
If you don't have the TM Terminal plugin installed, you could use external run configurations.
Click on the arrow near run button with the toolbox and add a new external run configuration.
Here, you can enter the path of your program(if you want to run commands, it will be C:\Windows\System32\cmd.exe (or the path to PowerShell on windows and /bin/bash (or similar if you use another shell) on linux.
In this dialog, you can also specify running directory of the application(the current project in your case)
After that, you can save this configuration and start it using the external run configuration menu(run button with toolbox)
Click on Run Cofiguration--> arguments --> Program Arguments (write any number of String) -->click on run
Go to Window > show view > Other.
A dialog will show up, type Terminal in the search field, select Terminal and click open.
A new empty view will show up in Eclipse.
On the top right corner of the view there is a button Labeled "open a Terminal".
Click on it, a dialog will show up
click OK and there you go, you got a Terminal.
all.
I am using Eclipse 3.8.1 on my Ubuntu 14.04 LTS. So, i am getting error when opening a file that i was set to external editor (Sublime Text) for editing.
Although I've done setting that external editor via Preferences -> General -> Editors -> File Associations, but i had to do resetting that when Eclipse restarted.
What is the solutions ? Thanks for the answer.
I use eclipse version 4.4.1 not from software center.
I registered external editor(brackets) using Preferences -> General -> Editors -> File Associations - no resets, no restarts.
First i browsed to the wrong executable file, which didn't open brackets(which was the editor i was pointing). Then i corrected to shell script of the executable.
Then i tried the same opening external editor. Brackets opened successfully.
I think you have to check whether you pointed to the correct executable while adding external editor. Also i recommend using latest version of eclipse(Just extract and start using if openjdk already installed.)
From Eclipse, how to go to the specific folder? I mean in windows, how to open a command line which corresponding to the folder or direct open the file explorer to open the corresponding folder?
You have to create an external tool with location ${env_var:SystemRoot}\explorer.exe (or cmd.exe) and arguments /select,${resource_loc} . Any selected file or directory can now be shown in the windows explorer.
Create an External tool
Go into the external tool configuration (you can find it into the corresponding toolbar icon) :
Then you can create your own external tool :
Create a new Program (select Program in the tree)
Name it shell
Set the location to ${env_var:SystemRoot}\explorer.exe
Set the arguments to /select,${resource_loc}
Run the external tool
Once created you can run the external tool from the context menu or from the toolbar ...
I have been using an Eclipse plugin called PathTools for sometime now, and am happy with it.
It adds a number of buttons to the Eclipse toolbar which allow you to :
Directly open a cmd prompt at the selected folder.
Open an Explorer window for the selected folder.
Update site : http://pathtools.googlecode.com/svn/trunk/PathToolsUpdateSite/site.xml
Sample screenshots
Installing the `Path Tools Feature`
I chose to install only the Path Tools Feature
Opening a terminal
Opening a terminal directly at the Folder Path :
(The above snapshot is that for OSX but works in Windows as well)
Opening Explorer
Opening a folder directly in Explorer/Finder :
Great simple plugin for this:
http://basti1302.github.com/startexplorer/
2019 update (no plugins required):
Right click the desired folder in the Project Explorer, go to Show In, choose either Terminal or System Explorer. See below screenshot:
Right click the file (in left pane).. then use Win Goodies -> Open file in Explorer
Is it possible to use external command line tools in Netbeans?
Thank you.
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
There is a Terminal window in NetBeans 7:
Open the menu, Window -> Output -> Terminal
What about using an Ant target? Ant files are quite comfortable to run from Netbeans.
<exec executable="${executable-full-path}" ...
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:
Download the .nbm file for your version of NetBeans
Open Tools / Plugins / Downloaded / Add Plugins...
Select the .nbm file and allow the installation of the plugin.
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).