Deploying Java programs

Deploying a Java program consists of bundling the various Java class files, image files, and other files needed by the project and copying them to a location on a server or client computer where users can access them. You can deliver the in compressed or uncompressed archive files.

Using the Archive Builder

This is a feature of JBuilder Professional and Enterprise.
The JBuilder Archive Builder automatically gathers together the classes and files your program needs. It then bundles files into a compressed or uncompressed archive file, usually a JAR file. It can also create the archive's manifest file, which you can modify in JBuilder.

The Archive Builder also creates an archive node in your project, allowing easy access to the archive file. At any time during development, you can make the archive file, rebuild it, or reset its properties. You can also view the contents of the archive, as well as the contents of the manifest file.

To deploy a program,

  1. Create and compile your code in JBuilder.
  2. Run the Archive Builder to create the archive file.
  3. Create an install procedure.
  4. Deliver your JAR file, all necessary redistributable JAR files, and the installation files.

Archive Builder

For more information, see "Deploying Java programs" in Building Applications with JBuilder.

For a tutorial on deploying to and running programs from JAR files, visit http://java.sun.com/docs/books/tutorial/jar/basics/index.html.


Deploying CORBA applications

This is a feature of JBuilder Enterprise.

When deploying CORBA applications with JBuilder Enterprise, the Archive Builder collects your stubs and skeletons into a JAR file. You must install your ORB on each machine that runs a client, middle-tier, or server CORBA program.

Deployment Wizard

For more information, see "Deploying Applications with VisiBroker" in the VisiBroker for Java Programmer's Guide if you are using VisiBroker, or see your Application Server's User's Guide.


Deploying web-based applications

Web-based, multi-tier applications are deployed onto web servers. Consult the documentation for your web server for information on deploying web applications.


Running deployed programs

You can run a deployed program from the command line with the JDK command-line tools.

To run a program at the command line, use the -jar option with the java command.

For more information, see "Running a program from a JAR file," "Using the command-line tools," and "Deploying Java programs" in Building Applications with JBuilder.

For a tutorial on running programs from JAR files, visit http://java.sun.com/docs/books/tutorial/jar/basics/index.html.