13
PROG 24168 Object Oriented Programming II Application Deployment

Application Deployment

Embed Size (px)

DESCRIPTION

Application Deployment. Application Deployment. Application deployment Makes a software application ready and available for use Available to prospective users Ready to run, or install and then run How you get there: Depends on your development environment. Application Deployment. - PowerPoint PPT Presentation

Citation preview

Page 1: Application Deployment

PROG 24168

Object Oriented Programming II

PROG 24168

Object Oriented Programming II

Application Deployment

Page 2: Application Deployment

Application DeploymentApplication Deployment

Application deploymentMakes a software application ready and available for useAvailable to prospective usersReady to run, or install and then run

How you get there:Depends on your development environment

04/19/23 Wendi Jollymore, ACES 2

Page 3: Application Deployment

Application DeploymentApplication Deployment

In Netbeans:Create the application projectAdd and code for any libraries you requireCreate an executable dist folder

Includes JAR fileMove any other required files/folders to the dist folder

E.g. images directory, data directory/filesUse your preferred utility to package up your dist folder

04/19/23 Wendi Jollymore, ACES 3

Page 4: Application Deployment

Creating an ExecutableCreating an Executable

04/19/23 Wendi Jollymore, ACES 4

Recall:When you made a class library, you used “Clean and Build”For applications, this also worksAutomatically updates the “manifest.mf” file

Page 5: Application Deployment

Note: Multiple MainsNote: Multiple Mains

04/19/23 Wendi Jollymore, ACES 5

Your app should only have ONE main() class

One class with a main() method

If, for some exceptional reason, you require more than one:

You can set which class is the “main” or startup class in in the project properties

Page 6: Application Deployment

Note: Multiple MainsNote: Multiple Mains

04/19/23 Wendi Jollymore, ACES 6

1. Right-click Project and select “Properties”

2. Select Run

3. Select startup class from list

Page 7: Application Deployment

04/19/23 Wendi Jollymore, ACES 7

Creating the JARCreating the JAR

Right-click projectSelect “Clean and Build”Libraries are automatically taken care of

The same as you create a class library jar:

Page 8: Application Deployment

04/19/23 Wendi Jollymore, ACES 8

The “dist” DirectoryThe “dist” Directory

As before, the “dist” directory is created with your JAR fileREADME.TXT

This is automatically generated by NetbeansThis is where you would add any extra instructions/infoE.g. instructions for running/installing, your contact info and web site, how to get help/support, etc

Page 9: Application Deployment

04/19/23 Wendi Jollymore, ACES 9

Additional Files/DirectoriesAdditional Files/Directories

Your application may also require additional files directories

E.g. Images directory, data directory/files, etcCopy these into your DIST folder

Ensure your app is using relative path names!

Page 10: Application Deployment

04/19/23 Wendi Jollymore, ACES 10

Package Your ApplicationPackage Your Application

Use your preferred utility (WinZIP, WinRAR, IZarc, etc)

Put contents of dist folder into your packageDO NOT include DIST folder!

This example uses WinZIP.It should be the same for other similar utilities.

Page 11: Application Deployment

04/19/23 Wendi Jollymore, ACES 11

Package Your ApplicationPackage Your Application

Create a meaningful name for your package/archiveDon’t save “full path info” with each file

Page 12: Application Deployment

Package Your ApplicationPackage Your Application

You’re done!

Make sure you have a friend test your packaged app!

04/19/23 Wendi Jollymore, ACES 12

Page 13: Application Deployment

Final Project SubmissionFinal Project Submission

Reminder:You will submit two zip/rar files:

Your distribution package, which I will install and run

E.g. BibsBookTracker_INSTALL.zip

A ZIP/RAR of your project directory from Netbeans, so I can grade your code

E.g. BibsBookTracker_SRC.zip

You can put both of these files into one zip/rar

E.g. mrbibs_project.zip

04/19/23 Wendi Jollymore, ACES 13