How to Push Out Java

How to Push Out Java thumbnail
File Transfer Protocol (FTP) is used to push Java Applications to a production server.

Pushing out Java is a common term for the process of deploying Java applications to a production or testing server. If you intend to push an entire application, it is best to export the project to a Web Application Archive (WAR) file. Most application servers, such as Apache Tomcat or GlassFish, automatically extract WAR files on restart. However, if you intend to push individual Java files to your server, the directories associated application must already be in place. The easiest way to push a Java application to a Web server is through a File Transfer Protocol (FTP) client, such as Core FTP or FIleZilla.

Things You'll Need

  • Application server
  • HTTP server
  • FTP client
Show More

Instructions

    • 1

      Enter the appropriate login credentials and host name to connect to your server into your FTP client.

    • 2

      Enter the location of the directory containing the WAR or Java file you intend to push in the "Selected Directories" dropdown in the left pane.

    • 3

      Find the directory in which you intend to deploy the file in the "Selected Directories" dropdown in the right pane. If you are deploying a WAR file, you will want to push the file to the "webapps" directory. If you are deploying a Java file, choose the location in which the Java file will be used.

    • 4

      Drag the file from the left pane into the destination directory in the right pane. Core FTP will automatically transfer the file to the server.

Tips & Warnings

  • The article describes transferring files to an Apache Tomcat install using Core FTP Lite. There are a variety of different servers and FTP clients available. Each may require a slightly different process for deploying files to your server.

  • You may need to restart the server for the changes to your application to take effect.

  • Depending on the sensitivity of the files you are transferring, you may wish to use Secure File Transfer Protocol (SFTP). Most FTP clients provide the option to use SFTP.

Related Searches:

References

  • Photo Credit Hemera Technologies/AbleStock.com/Getty Images

Comments

Related Ads

Featured