Creating a Project with which you can run Applets

  1. Launch CodeWarrior IDE 3.0.
  2. Create a New Project of the type Java Applet, call it Lines.µ
  3. Remove TrivialApplet files from Source segment in Project window
  4. Select Java Applet Settings from the Edit menu
  5. Click on Target Settings (on left) and change Target Name to Lines.class
  6. On the left, under Linker, click on Java Output, then pull down Output Type and select Class Folder. The Name field should now show Java Classes.
  7. Save the settings.

Creating and running Java programs

  1. Create your Lines.java source file. Remember to call the class Lines .
  2. When ready to run, choose Make from the Project menu. If compilation is successful, your byte code will appear as Lines.class in the folder named Java Classes. This folder should be in your project folder, the one named Lines.
  3. Create a Lines.html document and place it also in Java Classes.
  4. Find the Metrowerks Java application. It is in the Metrowerks VM folder.
    That is, open these folders: Metrowerks -> Metrowerks Java -> Metrowerks VM
  5. Launch Metrowerks Java. In the File menu, choose Open and open Lines.html to see the applet running in its window.