Developer

How to compile and run Jarnal from Eclipse on Windows 7:

1. If you have not already downloaded Jarnal click here to download it.

To access the source code:
- In the command prompt type cd <location of downloaded jarnal file> (Do not include the "<>" simply include the file location) and hit enter this will open the Jarnal
file directory.
- Type Rename Jarnal.Jar Jarnal.zip (exactly) and hit enter which will allow the computer to read the .jar file as a .zip file.
- Unzip the file to gain access to the java source code inside a file also titled Jarnal.

2. Once it has downloaded, open Eclipse, create a new workspace and continue to the Workbench. From the File menu select New and choose Java Project from the list. Name the project, make sure "Create new project in workspace is selected," and hit finish.

3. Separately, in a file browser, open the directory in which you have saved the project (an example of the default location for Windows 7 is C:/Users/userName/workplaceName/projectName). Open the folder in this directory titled src and move the unzipped jarnal (once jarnal.jar) directory into this folder. Also note in the originally downloaded jarnal-install file there is a folder titled "lib" .that should be moved into the unzipped jarnal directory.

4. Now go back to eclipse and in the far left panel, under Package Exp, right click on the project name (should be the first thing listed) and select refresh. Click the arrow next to your project, followed by the arrow next to src, followed by the one next to jarnal just to make sure all the files have been successfully put in the correct location.

5. After this has been done, go back to the jarnal directory in the src directory in the file browser and open the text file titled jmainclass. There are 6 files listed, all of which can be found in the lib directory. You now need to configure build classpath back in Eclipse. To do this, select Properties from the Project menu. In the left panel select Java Build Path, then the Libraries tab from the top. Select "Add External JARs..." and add the files in the lib directory listed in jmainclass.

6. Hopefully when you click Run Jarnal will open and run.

7. An easy way to double check if you can edit the program:
in the Jarnal.java file around the 4948 line is a string that says "About Jarnal". Another fairly easy way to find this would be to search About Jarnal in the file.

Change the word about to Hello

Compile and run the program

Under the help menu, select about. The window title should now say Hello
Jarnal instead of About Jarnal. You may however want to change this back after you have tested your editting capabilities.