I have a Java program Desktop/testfolder/xyz.jar on a remote machine. It has a configuration file on the same folder. When I SSH into the machine, I do:
Desktop/testfolder/xyz.jar
Try something like this:
ssh you@yours.com "cd /home && ls -l"