[英]How to use JCurses in IntelliJ?
I would like to use the JCurses Library with IntelliJ IDE but I have the following error message : "Error opening terminal: unknown." 我想使用带有IntelliJ IDE的JCurses库,但我有以下错误消息:“打开终端时出错:未知。”
My code : 我的代码:
import jcurses.system.*;
// Test Jcurses
Toolkit.init();
My Config : 我的配置:
I don't find any documentation about the good way to do it. 我没有找到任何关于这样做的好方法的文档。
Does anyone have an idea ? 有没有人有想法?
IntelliJ IDEA console tool window is not a real terminal. IntelliJ IDEA控制台工具窗口不是真正的终端。
There is a feature request to allow running in the external console. 有一个功能请求允许在外部控制台中运行。 See also another related request .
另见另一个相关请求 。
At the moment you can configure the External Tool which will spawn a console and run your app there, but IDE integration will be not available for this console (however, you can still use Remote Debug). 目前您可以配置外部工具,它将生成一个控制台并在那里运行您的应用程序,但IDE集成将不可用于此控制台(但是,您仍然可以使用远程调试)。
Or you can use the Terminal tool window to run your app there manually. 或者您可以使用终端工具窗口手动运行您的应用程序。 It would be handy to pack your app into an executable jar with all the dependencies .
将您的应用程序打包到具有所有依赖项的可执行jar中会很方便。 Then you will be able to run it like
java -jar myapp.jar
in the Terminal tool window or in the external terminal window. 然后,您将能够在终端工具窗口或外部终端窗口中像
java -jar myapp.jar
一样运行它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.