Is it possible to place a Java application locally on a machine, and then run it with java.exe on (for instance) a DOS machine?

This could be helpful to run a JAVA program without the network traffic downloading the program when you need it. If I do not use a (windows)browser to run the Java application (not applet!), will I still be able to use graphical features?