如何设置Jcurses库? [英] How do I set up a Jcurses library?

查看:185
本文介绍了如何设置Jcurses库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Jcurses库来编码Rougelike。我想知道我应该如何设置Jcurses,以便我可以编译和编写访问它的类。 (我正在使用Windows。)到目前为止,我已经尝试将库包含在Eclipse中,但按照正常的过程,包括库导致错误。我的目录看起来像什么(关于存储Jcurses文件夹的位置以及我的项目的存储位置),以及我需要设置哪些路径?



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

解决方案

确保您有平台的Jcurses(可以这里这是 jcurses-windows-0.9.5b.zip 。接下来,要安装执行这些步骤(从 ECLIPSE_JCURSES_HOWTO.txt ) -



如果您知道Eclipse用于启动程序的命令,请启动t步骤4。



步骤1)像往常一样运行Java应用程序(如果失败无关紧要),并切换到调试视图。



步骤2)右键单击该过程,并通过选择属性打开属性窗口。



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



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



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

 位置:Windows操作系统的cmd.exe的路径。 
例如:C:\WINXP\system32\cmd.exe

工作目录:无论你想要什么工作目录。

参数:/ c start C:\WINXP\system32\cmd.exe / k,后跟以前复制的命令。
例如:
/ c start C:\WINXP\system32\cmd.exe / k C:\Programme\Java\jre6\bin\java.exe -Dfile .cn = $ c>


I am trying to use the Jcurses library for coding a Rougelike. I was wondering how specifically I should set up Jcurses so that I can compile and write classes that access it. (I'm using Windows.) So far I have tried including the library in Eclipse, but following the normal process for including libraries resulted in errors. What should my directories look like (in relation to where the Jcurses folder is stored and where my project is stored) when everything is set up, and which paths do I need to set?

PS: I found that a similar question had been asked but it appeared to offer an alternative to Jcurses, not how to use Jcurses.

解决方案

Make sure you have the Jcurses for your platform (available here that is jcurses-windows-0.9.5b.zip. Next, to install do these steps (from ECLIPSE_JCURSES_HOWTO.txt) -

If you know which command Eclipse uses to launch your program, start at step 4.

Step 1) Run Java app as usual (it does not matter if it fails), and switch to the debug view.

Step 2) Right click on the process, and open the property window by selecting "Properties".

Step 3) Select and copy the command-line parameter used to launch the program.

Step 4) Hit the arrow-button next to "External Tools" (The play icon with a small red toolbox), and hit "External Tools Configuration"

Step 5) Create a new configuration, with the following data:

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

这篇关于如何设置Jcurses库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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