简体   繁体   中英

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."

My code :

import jcurses.system.*;
// Test Jcurses
Toolkit.init();

My Config :

  • VM Debian 8.7 64-bits with IntelliJ 2016.3.3 and JAVA Open JDK 64-bits 1.8
  • Lib directory with jcurses.jar and libcurses64.so

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.

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).

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 . Then you will be able to run it like java -jar myapp.jar in the Terminal tool window or in the external terminal window.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM