Index of /~raj/4710/sp03/os

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   -  
[   ]Movie.class 2018-05-17 10:59 1.1K 
[TXT]Movie.java 2018-05-17 10:59 936  
[   ]Studio.class 2018-05-17 10:59 850  
[   ]Star.class 2018-05-17 10:59 843  
[   ]Studio.java 2018-05-17 10:59 641  
[   ]Star.java 2018-05-17 10:59 639  
[   ]cfpargs 2018-05-17 10:59 36  
[DIR]Classes/ 2018-05-17 10:59 -  

INSTRUCTONS TO COMPILE AND RUN ObjectStore Java Programs

1. Create directory for assignment

   mkdir ~/4710/hw7

2. Create directory for annotated class files

   mkdir ~/4710/hw7/Classes

3. Move to hw7 directory

   cd ~/4710/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