Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Compiling and Running a Program > Compiling with Flex Builder 2

7.2. Compiling with Flex Builder 2

Before we can compile the virtual zoo program using Flex Builder 2, we must first make some changes to our code in order to meet the requirements of Flex Builder 2's compiler. Flex Builder 2's compiler stipulates that a program's main class must reside in the unnamed package. Currently, our VirtualZoo class resides in the package zoo, not the unnamed package.

7.2.1. Moving the Main Class to the Unnamed Package

To move VirtualZoo from zoo to the unnamed package, we must follow these steps:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint