Deploying Java Applications


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Deploying Java Applications

Hybrid View

  1. #1
    Gerry Guest

    Deploying Java Applications


    Ok now I've been learning java and all is well but one (minor..) problem has
    risen.

    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!

  2. #2
    Paul Clapham Guest

    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
    point...

    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
    www.installshield.com.

    PC2

    Gerry <gerry@visualimpact.net> wrote in message
    news:3a1bbccb$1@news.devx.com...
    >
    > Ok now I've been learning java and all is well but one (minor..) problem

    has
    > risen.
    >
    > 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!




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center