sudo apt-get install nautilus-actions
- Open Nautilus Actions Configuration Tool
- Set context name to "Upload to Pastebin" or something of your choice
- Set path to the location of the compiled jar (use jar command or eclipse to compile to an executeable jar)
- Set the sent parameters to %F