130 likes | 244 Views
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
E N D
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 • To run your programs successfully, YOU must be logged on to the server with YOUR student account
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
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 !!!!!
Run Code Warrior: • Run Code Warrior • Create a new Java Application Project FILE NEW PROJECT • Select the folder you previously created (DESELECT “CREATE FOLDER”)
Run Code Warrior: • Name the project HelloWorld • Select JAVA APPLICATION WIZZARD • Click OK • Change the Class Name (call the class firstapp)
Run Code Warrior: • Make sure “Create Initial Form” is deselected • NEXT>> • Provide a meaningful title and comments for the project • FINISH >>
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
Run Code Warrior: • Reposition BRACKETS TO LINE UP • Make Coding Change to display Hello World • NOTICE Code Completion • Compile the program (Project Compile)
Run Code Warrior: • Run the Program (Project Run) • Exit Code Warrior
Look at Resulting Files: • Go Through Desktop My Documents and find your HelloWorld folder • You should have the following SUBFOLDERS under your main folder:
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
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