Beginner Question <remote access PC>

view full story

http://www.daniweb.com – I got 2 machines both has the same operating system (Linux based), lets name these machines as PC 1 and PC 2. PC 1 has a hello world program that displays in a GUI, when we pass the command " java helloWorld smith " (smith is the parameter), and we have added this to the class path, so when the user simply types the command " java helloWorld smith ", a pop up will appear and display "HELLO SMITH". what i want to do is to write a java program so from PC 2, we pass user name and password credentials and log into PC 1, and execute the command " java helloWorld smith " so that PC 1 will display " HELLO SMITH ". is this possible ? can some one guide me to implement it by providing some example programs or tutorials . (General)