Presentation is loading. Please wait.

Presentation is loading. Please wait.

PROG 24168 Object Oriented Programming II PROG 24168 Object Oriented Programming II Application Deployment.

Similar presentations


Presentation on theme: "PROG 24168 Object Oriented Programming II PROG 24168 Object Oriented Programming II Application Deployment."— Presentation transcript:

1 PROG 24168 Object Oriented Programming II PROG 24168 Object Oriented Programming II Application Deployment

2 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 2/18/2016Wendi Jollymore, ACES2

3 Application Deployment In Netbeans: Create the application project Add and code for any libraries you require Create an executable dist folder Includes JAR file Move any other required files/folders to the dist folder E.g. images directory, data directory/files Use your preferred utility to package up your dist folder 2/18/2016Wendi Jollymore, ACES3

4 Creating an Executable 2/18/2016Wendi Jollymore, ACES4 Recall: When you made a class library, you used “Clean and Build” For applications, this also works Automatically updates the “manifest.mf” file

5 Note: Multiple Mains 2/18/2016Wendi Jollymore, ACES5 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

6 Note: Multiple Mains 2/18/2016Wendi Jollymore, ACES6 1.Right-click Project and select “Properties” 2. Select Run 3. Select startup class from list

7 2/18/2016Wendi Jollymore, ACES7 Creating the JAR Right-click project Select “Clean and Build” Libraries are automatically taken care of The same as you create a class library jar:

8 2/18/2016Wendi Jollymore, ACES8 The “dist” Directory As before, the “dist” directory is created with your JAR file README.TXT This is automatically generated by Netbeans This is where you would add any extra instructions/info E.g. instructions for running/installing, your contact info and web site, how to get help/support, etc

9 2/18/2016Wendi Jollymore, ACES9 Additional Files/Directories Your application may also require additional files directories E.g. Images directory, data directory/files, etc Copy these into your DIST folder Ensure your app is using relative path names!

10 2/18/2016Wendi Jollymore, ACES10 Package Your Application Use your preferred utility (WinZIP, WinRAR, IZarc, etc) Put contents of dist folder into your package DO NOT include DIST folder! This example uses WinZIP. It should be the same for other similar utilities.

11 2/18/2016Wendi Jollymore, ACES11 Package Your Application Create a meaningful name for your package/archive Don’t save “full path info” with each file

12 Package Your Application You’re done! Make sure you have a friend test your packaged app! 2/18/2016Wendi Jollymore, ACES12

13 Final 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 2/18/2016Wendi Jollymore, ACES13


Download ppt "PROG 24168 Object Oriented Programming II PROG 24168 Object Oriented Programming II Application Deployment."

Similar presentations


Ads by Google