Time for action – preparing the Chapter8 application

Before we can proceed with this chapter we must prepare the application and runtime environment.

The first task will be importing the example application into JBoss Developer Studio then we must modify the runtime configuration to allow us to run the Wise example which appears later in this chapter.

Import the Chapter8 application into JBoss Developer Studio as follows:

  1. Click on File menu and select Import.
  2. Choose Existing Projects into workspace and select the folder where the book samples have been extracted.
  3. Choose Chapter8 project and click on Finish.

In order to execute the Wise example we will need to modify the runtime configuration to include the JDK tooling library, a requirement of Wise. Modify the runtime configuration as follows:

  1. In JBoss Developer Studio, click Window | Preferences.
    Time for action – preparing the Chapter8 application
  2. Select the Installed JREs and select the default JRE that is ticked and click on the Edit button:
    Time for action – preparing the Chapter8 application
  3. Click on the Add External Jars button and select the tools.jar file from the JDK directory. Your JAR listing should now show tools.jar as shown:
    Time for action – preparing the Chapter8 application
  4. Click the Finish button and restart the JBoss 5.1 Runtime server.

What just happened?

We have imported the example application into JBoss Developer Studio, which we will use throughout the remainder of this chapter. We have also looked at the runtime configuration which is used to execute these examples, modifying it to include a necessary JAR for executing the example in the Wise section.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.28.197