如何设置Jcurses库?

use*_*057 11 java eclipse jcurses

我正在尝试使用Jcurses库来编写Rougelike.我想知道我应该如何具体设置Jcurses,以便我可以编译和编写访问它的类.(我正在使用Windows.)到目前为止,我已尝试在Eclipse中包含该库,但遵循包含库的正常过程会导致错误.在设置所有内容时,我的目录应该是什么样的(关于存储Jcurses文件夹的位置以及存储项目的位置),以及我需要设置哪些路径?

PS:我发现有一个类似的问题已被问到,但它似乎提供了Jcurses的替代品,而不是如何使用Jcurses.

Ell*_*sch 3

确保您拥有适合您平台的 Jcurses(可在此处获取接下来jcurses-windows-0.9.5b.zip,要安装,请执行以下步骤(来自ECLIPSE_JCURSES_HOWTO.txt) -

如果您知道 Eclipse 使用哪个命令来启动程序,请从步骤 4 开始。

步骤1)照常运行Java应用程序(失败也没关系),并切换到调试视图。

步骤2)右键单击该进程,然后选择“属性”打开属性窗口。

步骤 3) 选择并复制用于启动程序的命令行参数。

步骤4)点击“外部工具”旁边的箭头按钮(带有红色小工具箱的播放图标),然后点击“外部工具配置”

步骤 5) 创建一个新配置,包含以下数据:

Location: The path to the cmd.exe of your Windows OS.
  For Example: C:\WINXP\system32\cmd.exe

  Working Directory: Whatever working directory you want.

  Arguments: "/c start C:\WINXP\system32\cmd.exe /k " followed by the previously copied command.
  For Example:
    /c start C:\WINXP\system32\cmd.exe /k C:\Programme\Java\jre6\bin\java.exe -Dfile.encoding=Cp1252 -classpath "C:\Dokumente und Einstellungen\mccae\Eigene Dateien\javawork\TWCC+\bin" at.co.lipski.twcc2.console.TWCCDaemon
Run Code Online (Sandbox Code Playgroud)