Remote desktop, close window

I have remote access to a desktop that runs a java application.
I want to terminate the application. I tried to close the application window (through the 'X') but it won;t close. I tried 'jobs' command but it does not list any jobs (?).
Is there anyway to list the current jobs and terminate the one that i am interested?