This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
If you want to distribute it you can just put it on a web server somewhere, possibly as a Java Web Start application. If you mean to sell it, then there are various options; maybe something like Kagi fits the bill.
1. If its a web application,
you have to deploy it to a web server that supports, in that case your software can either consists of a folder hierarchy containing classes and properties
files and xmls or a single war file
2. If its a desktop application,
you have to deploy it either by providing your client with class files or distribute the jar files. for systems with java installed, the jar files are usually like
executables eg for windows you can double click a jar file to execute. If not you have to create the associations.
try it and tell us if you still face problems or you have not understood any of the above statements