1 / 13

First Things First : Create a LINK on your Desktop to the JAVA DOC

First Things First : Create a LINK on your Desktop to the JAVA DOC The Java Doc is on the file server This document will be used to work with Java Classes. USING CodeWarrior IDE: Before you write a project you need to CREATE A FOLDER IN YOUR AREA ON THE FILE SERVER

cleary
Download Presentation

First Things First : Create a LINK on your Desktop to the JAVA DOC

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. First Things First: • Create a LINK on your Desktop to the JAVA DOC • The Java Doc is on the file server • This document will be used to work with Java Classes

  2. USING CodeWarrior IDE: • Before you write a project you need to CREATE A FOLDER IN YOUR AREA ON THE FILE SERVER • To run your programs successfully, YOU must be logged on to the server with YOUR student account

  3. USING CodeWarrior IDE: • Save through the My Documents folder on the workstations Desktop • MAKE SURE YOU ARE WORKING THROUGH DOCUMENTS and SETTINGS / MY DOCUMENTS • Add a folder called: HelloWorld

  4. USING CodeWarrior IDE: The work you do while logged on is SYNCHRONIZED and saved on the FileServer when you LOG OUT, so Make sure you LOG OUT at the end of each class or your work WILL BE LOST !!!!!

  5. Run Code Warrior: • Run Code Warrior • Create a new Java Application Project FILE NEW PROJECT • Select the folder you previously created (DESELECT “CREATE FOLDER”)

  6. Run Code Warrior: • Name the project HelloWorld • Select JAVA APPLICATION WIZZARD • Click OK • Change the Class Name (call the class firstapp)

  7. Run Code Warrior: • Make sure “Create Initial Form” is deselected • NEXT>> • Provide a meaningful title and comments for the project • FINISH >>

  8. Run Code Warrior: • GENERATE>> • You Now have a project shell with 1 file in it called firstap.java • Double Click on this file to open it • Notice the name of the class is the SAME as the name of the application firstapp

  9. Run Code Warrior: • Reposition BRACKETS TO LINE UP • Make Coding Change to display Hello World • NOTICE Code Completion • Compile the program (Project Compile)

  10. Run Code Warrior: • Run the Program (Project Run) • Exit Code Warrior

  11. Look at Resulting Files: • Go Through Desktop My Documents and find your HelloWorld folder • You should have the following SUBFOLDERS under your main folder:

  12. Look at Resulting Files: HelloWorld --- Contains The .java file you created firstapp.java HelloWorld_Data ---- contains DEBUG & Release Files created by Codewarrior HelloWorld --- Code Warrior Project MCP Extension Java Classes --- Java Archive File (JAR) (Package) contains firstapp.class

  13. Debugger: • Have some fun by changing your source code and then RECOMPILE • See if you can identify the errors • Use the debugger to set a breakpoint

More Related