tags:

views:

87

answers:

3

How to implement the Linux 'top command' style UI using JAVA?

And How to run jar in server side itself, and i can see the state of the program after i log in SSH.

+1  A: 

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.

Pestilence
+2  A: 

For your second question:

java -jar jarfile.jar

Will run a jar file that is written to be run at the command line. 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:

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

Jay
If you setup a shell script to issue this command (if using OpenSSH), you can create a new user account and use the script as the "shell" for the account. It'll allow you to SSH directly into your app without allowing the user to drop to command-line.
Pestilence
A: 

You might be looking for a Java Curses Framework like this: http://javacurses.sourceforge.net or CHARVA

Matthias Küch