Index of /~raj/4710/sp01/os

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   -  
[TXT]readData.java 2018-05-17 10:59 3.6K 
[TXT]createData.java 2018-05-17 10:59 3.1K 
[   ]Studio.java 2018-05-17 10:59 641  
[   ]Star.java 2018-05-17 10:59 639  
[TXT]Movie.java 2018-05-17 10:59 936  

INSTRUCTONS TO COMPILE AND RUN ObjectStore Java Programs

1. Create directory for assignment

   mkdir ~/4710/os/hw7

2. Create directory for annotated class files

   mkdir ~/4710/os/hw7/Classes

3. Move to geo directory

   cd ~8710/os/hw7

4. Now, create java files corresponding to Database classes here.
   For example, the files Movie.java, Star.java and Studio.java 
   for the Movie database go here.

5. Compile these files using

   javac *.java

6. Create a file, called cfpargs, containing one entry per class 
   which you want to make persistent. Example: 

   Movie.class
   Star.class
   Studio.class

7. The following command issued in the hw7 directory will produce 
   annotated files that makes database objects persistent.

   osjcfp -dest Classes @cfpargs

8. Move to Classes directory.

   cd Classes

9. Now, create your application programs here. For example the Movie
   database java programs createData.java and readData.java files go here.

10. Compile application programs.

   javac createData.java
   javac readData.java

11. Run the application programs.

   java createData movie.odb
   java readData movie.odb