[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ 11 ] [ 12 ] [ 13 ] [ 14 ] [ 15 ] [ 16 ] [ 17 ] [ A ] [ B ] [ C ] [ D ] [ E ] [ next ]

Smart Cache Manual
Chapter 10 - For programmers


10.1 Making Java 1.2+ .jar file

Java versions, starting from 1.2 (JVM Kaffe also do that), can run Java applications more easily. You can make .jar file and run it from command line by java -jar filename.jar or in Windows by double clicking on it.

  1. cd src
  1. Compile SC Java sources - javac -O *.java (or use distributed .classes).
  1. Make .jar file - jar cvfm scache.jar MANIFEST.MF *.class gnu/rex/*.class

Because .jar file is just renamed .zip file, you can also copy file MANIFEST.MF in SC archive to META-INF/MANIFEST.MF and pack compiled classes with this file using any .zip utility.

If everything works you now have jar file.


10.2 Compiling Smart Cache sources

Distributed .class files are not compiled by -O switch of javac. If want to have SC 'optimised', you can recompile it.

Change working directory to smartcache_home/src and execute command javac -O *.java. If you have tar distribution running top-level gnumake should work.

Do not compile Smart Cache using jikes. Some versions of jikes (1.13) are not quite compatible with some JVMs (OS/2 for example).


10.3 Structure of .cacheinfo control files

Technical notes:

Structure of .cacheinfo files (Version 4).

Structure of .cacheinfo files (Version 3) used in SC from version 0.47 to 0.73.

Following OLD format of .cacheinfo files is used in SC from version 0.30 to 0.46.

Structure of OLD .cacheinfo files (Version 2)


[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ 11 ] [ 12 ] [ 13 ] [ 14 ] [ 15 ] [ 16 ] [ 17 ] [ A ] [ B ] [ C ] [ D ] [ E ] [ next ]

Smart Cache Manual

0.84
Radim Kolar hsn@cybermail.net