Deploying Java Applications
Ok now I've been learning java and all is well but one (minor..) problem has
How do I distribute an executable application to users?
All is fine and dandy when I have the compiler to run my projects but how
does "Joe average user" get to run my apps on his machine without having
to install the JDK on his or her machine and having to type in "java MyApp"
at a DOS prompt??
Thanks in advance for any help!
Re: Deploying Java Applications
That depends on who the users are. Are they your co-workers, fellow club
members, or total strangers? Do they know how to mess with computers, or do
they not know a directory path from the garden path?
First of all, you don't have to install the JDK to run a Java program. You
only need to install the corresponding JRE (Java Runtime Environment), which
is a smaller package. Second, to run a Java program you can create (I'm
assuming your target platform is Windows here) either a batch file or a
Windows shortcut that can be double-clicked to run. But to do this you must
know in what directory the JRE was installed, which leads to the next
If you are going to distribute your program to people you know, then you can
send them the bits and pieces (JRE, your classes, supporting files, etc.)
with rough instructions for installing them, then talk to them to make sure
it gets done correctly. But if you plan to send it to anybody in the world,
then you need to make a professional-looking installation package. There's
software to help you produce such a thing, but it comes at a cost. See
Gerry <email@example.com> wrote in message
> Ok now I've been learning java and all is well but one (minor..) problem
> How do I distribute an executable application to users?
> All is fine and dandy when I have the compiler to run my projects but how
> does "Joe average user" get to run my apps on his machine without having
> to install the JDK on his or her machine and having to type in "java
> at a DOS prompt??
> Thanks in advance for any help!
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL