Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This exercise guides you through the process of using packages to organize the classes of an application, and it gives you a chance to work

image text in transcribed
This exercise guides you through the process of using packages to organize the classes of an application, and it gives you a chance to work with a library. Review a project that uses packages 1. Open the project named ch10_exI_Lineltem that's in the ex_starts directory. and notice that this project is organized into packages. 2. Review the code for each of the classes, and note that the package statement for each class corresponds with the package directories that are shown in the Projects window. 3. Review the subdirectories and files of this directory: ex_tarts \ch10 ex1_Linertemlare Note that these subdirectories and files correspond with the packages and classes for this project. Work with packages 4. Add a new package named murach.test to the project. 5. Move the LineltemApp class from the murach.app package to the murach.test package. When the Move Class dialog box is displayed, click the Refactor button so that NetBeans automatically modifies the package statement for this class. 6. Delete the package named murach.app. 7. Rename the murach.database package to murach.db. Note that NetBeans automatically renames the directory that corresponds with this package and modifies the package statement for the class that's stored in this package. 8. Open the ProductDB class and comment out its import statement. If you're using NetBeans, this should cause syntax errors that indicate that the ProductDB class can't find the Product class. To fix this, uncomment the import statement. 9. Run the project to make sure it's working correctly. Create a library 10. Use the Build command to compile the project. Then, look in the file system and note that the ch10_ex1_Lineltemlist subdirectory contains a JAR file named chl0_exl_Lineltem.jar. 11. Rename the JAR file to murach.jar. Use a library 12. Copy the murach.jar file into the ch10_ex1_Productsre directory. Then, open the project named ch10_ex1_Product and review the code in the ProductApp class

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions

Question

Who will receive the final evaluation?

Answered: 1 week ago

Question

Write an elaborate note on marketing environment.

Answered: 1 week ago