JCreator assignment #1
Directory "My Documents"
- After logging in you should see a shortcut on the desktop called Shortcut to My Documents. Double click
on this icon or from the Start menu select My Documents.
Creating a JCreator Workspace - This only needs to be done once all year!
- Download the file JCreator Workspace. Right click on the JCreator Workspace text
and select Save Target As..., then find the folder My Documents
folder. Click Save.
- Right click on JCreatorLE.zip and select Extract All...
- Click Next.
- Click Browse... Ignore the Desktop folder Error Message.
- Select My Documents. Click OK, then click Next.
- Click Finish.
- Delete the zip file JCreatorLE.zip!!!
- Open My Documents then open the JCreator LE folder.
- Double click on LJHS Workspace.jcw, then from the File menu select Exit.
*** IF DOUBLE CLICKING ON Workspace.jcw DOESN"T WORK! *** do the following 6 steps
- From the Start menu select All Programs then select JCreator LE 5.00.
- If the "Tip of the Day" window come up, uncheck Show tips on startup then click Close.
- Form the File menu select Open Workspace.
- Browse to the JCreator LE folder in your My Documents folder.
- Hover the cursor over the two LJHS Workspace files and select the one that is Type: JCreator Workspace File
(extension .jcw), then click Open.
- From the File menu select Exit.
Starting JCreator - This is what you will do each day!
- From the Start menu select All Programs then select JCreator LE 5.0.
- Once you have started JCreator LE 5.0 click on LJHS Workspace under Recent Projects.
- Look in the File View window (on the left side of the screen) to find your projects.
If the File View window is not visible go to the View menu and select File View.
Your files are listed under each project.
- To use files within a project, right click on the project name in the File View window, and
select Set As Active Project.
Double click on the file you want to work with. The file should show up in the window on the right.
- To build and run the above file go to the Run menu and select Run File.
- If there are errors they will be displayed in the Build Output window. You will need to fix them. Check
the spelling!
- If there are no errors the output will be displayed in the General Output window.
- You can enlarge the General Output window by dragging it upwards. You can close the window by
clicking on the X in the top right corner of the General Output window.
Creating a JCreator File (Program) in your project - This is how you will do your assignments!
Workspace, Projects and Files - What are these things?
The Workspace holds all your projects. This is something you don't want to mess with.
A project is a group of related files (programs). Create a project for each new section
we do.
Files (programs) belong inside projects. These are the individual programs you will do
as assignments.
Adding line numbers in your file
- You will want to have line numbers in your file. To add line numbers go to the Configure menu and
select Options...
- Under Editor select Java.
- Check: Show line numbers.
*** End of JCreator Directions ***
JCreator Assignment #1
Using the directions above create 2 Java files called
Test3.java and Test4.java. Save both of these files in your CS1_2FirstProject project.
The output for these two files should be different!
Both of these files should be opened together and displayed under
CS1_2FirstProject in the File View window. If the File View window is not open go to
the View pull down menu and select File View.
When you complete the assignment show me at the computer the following items:
- Show me how you compiled your test programs and the different output for each of them.
- Show me the directory contents of JCreator LE. This folder should only contain
the files called LJHS Workspace.jcw, LJHS Workspace.jcu and the folder CS1_2FirstProject.
- The folder CS1_2FirstProject should contain Test.java, Test2.java, Test3.java and Test4.java.
Don't worry about other files listed in this folder.
- Show me that your files have line numbers displayed to the left of each line.