First take your .java file and put a copy on the Unix machine. I suggest you either make a new file on the Unix machine
and cut and paste the file content OR move/drag a copy over from your Eclipse workspace folder. If you do just drag to move from Eclipse do it from your worskpace folder
rather than trying to drag it from directly inside Eclipse since the eclipse version might have extra stuff in it.
For this example I needed to copy the images folder as well.