You can create an executable jar and copy it to your notebook. Assuming that you have Java installed and correctly set up, you'll be able to run the application. If you don't know how to set up Java on Ubuntu, just google "Java Setup on Ubuntu".
If you have a web application or an
EJB application, you'll need to install an application server as well. I'd go for Glassfish.