简体   繁体   English

如何使用JAVA实现Linux最高命令界面?

[英]How to implement the Linux top command UI using JAVA?

How to implement the Linux 'top command' style UI using JAVA? 如何使用JAVA来实现Linux“ top command”风格的UI?

And How to run jar in server side itself, and i can see the state of the program after i log in SSH. 还有如何在服务器端本身运行jar,登录SSH后可以看到程序的状态。

For your second question: 对于第二个问题:

java -jar jarfile.jar java -jar jarfile.jar

Will run a jar file that is written to be run at the command line. 将运行编写为在命令行运行的jar文件。 Anything this program prints to standard out will be displayed for you to see. 该程序打印到标准输出的所有内容都将显示给您查看。

This entry talks a bit about building a jar file that can be run in this way: 这篇文章讨论了如何构建可以以这种方式运行的jar文件:

http://en.wikipedia.org/wiki/JAR_%28file_format%29 http://en.wikipedia.org/wiki/JAR_%28file_format%29

You could give this a try. 你可以给一个尝试。 I'm assuming that you're looking for an ASCII terminal UI toolkit... which I'd recommend, because terminal codes are rather painful to write by hand. 我假设您正在寻找一个ASCII终端UI工具包...,我建议您这样做,因为手工编写终端代码非常麻烦。

您可能正在寻找像这样的Java Curses框架: http ://javacurses.sourceforge.net或CHARVA

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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