Maybe save them to H:\CSI2172\lab1\pointCP\]
How to get the project open and run:
- Start Jbuilder 7: Start|Programs|Borland|JBuilder 7 Enterprise|Jbuilder 7
Enterprise
- Do: File|New Project...
- Name: pointCP
Directory: (click the ... and select the parent directory where you saved
the files to [H:\CSI2172\lab1\]
- Click Next>
- Edit the path for the source code: Select the first line in the lower box
and then click on Edit
- Click ok (the correct directory should be selected: H\CSI2172\lab1\pointCP)
- Click Next>
- Uncheck the "Enable Source Package Discovery and Compilation"
- Click Finish
To Add files/packages:
- For Files:
- Click the folder icon with the green + just above the project list
- Click the 'Explorer' Tab at the top of the window
- Select the .java files in the right panel
- Click Ok
- For Packages:
- Click the folder icon with the green + just above the project list
- Click the 'Packages' Tab at the top of the window
- Enter in the first few letters of the package 'e.g. point'
- Click Ok
To Run your code:
- Select from the menu: Run|Run Project
You will need to create a "runtime configuration"
- Click on New...
- Enter a name for the configuration e.g. pointCPtest
- Select the .class file where the main method exists: Click on ...
- Browse for the class: Enter in the first few letters of the class e.g.
PointCPTest.
- Leave the VM parameters and Application parameters blank
- Click on Ok
- Click on Ok
- Select from the menu (again): Run|Run Project
Also note the following: If you are running code that writes to System.out and
you want to direct that output to a file, you can use the statement
System.setOut(new PrintStream(new FileOutputStream("data_filename.txt)));