使用Netbeans外部控制台时出错 [英] Error when using Netbeans External Console

查看:141
本文介绍了使用Netbeans外部控制台时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用netbeans 8.2(在Windows 10中)在c ++中编译一个简单的hello world程序,但是出现以下错误:

I'm trying to compile a simple hello world program in c++ using netbeans 8.2 (in windows 10), however I'm getting the following error:

如果使用内部终端,我实际上可以运行该程序,但是当我更改为外部终端时,会收到此错误.

If I use the internal terminal I can actually run the program but when I change to external I receive this error.

我已经尝试将外部终端类型从默认"更改为命令窗口",但没有成功...

I already tried to change External Terminal Type from "Default" to "Command Window" without success...

我的项目位置非常简单: C:/NetBeansProject/Test (我也尝试了很多位置,但都没有成功...)

My project location is very simple: C:/NetBeansProject/Test (I also tried a lot of locations without success...)

推荐答案

我的学生也有此问题. 在某些情况下,可能会导致此问题(用户名中的特殊字符,防病毒软件,具有云同步的文件夹等).但是,目前(不更改NetBeans源代码),我能提供的唯一理由与NetBeans启动新进程时的超时有关(在 NBPatch

My students also have this problem. There are some situations that can originate this problem (special characters in the username, antivirus, folders with cloud synchronization, ... ). However, for now (without changing NetBeans source code) the only justification that I can present it is related with timeouts when NetBeans is starting a new process (after line 244 in TerminalLocalNativeProcess.java) Please try the following patch to minimize the problems: NBPatch

祝你好运! :-p

这篇关于使用Netbeans外部控制台时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆