Fril Native Library for Java

This page lists examples and documentation on calling Fril from a Java program, using the Fril native library.The software is evolving and may change before any final version is released. It is provided for educational, research or private use by an individual or organisation, and may not be sold or included in any system used commercially without prior written agreement from the authors. See the Fril Resources Page for author details and the license conditions

The Fril system is supplied as a class file (JFril.class) and a native library :

 

Operating System library format library name Availability
Windows dynamic link library (DLL) JFrilLib.dll

Zip archive (also contains example code)

4.982 version (for steve and zhou if he comes looking for it )

MacOS 8/9 system extension n/a <not currently downloadable>
MacOS X shared library libJFrilLib.jnilib gzipped tar archive

unpack with gunzip macosxJFril.tar.gz
tar xvf macosxJFril.tar
(if it doesn't happen automatically). Move the library libJFrilLib.jnilib and JFril.class to appropriate directories

Solaris

shared library

(fril version 4.983)

libJFrilLib.so

gzipped tar archive

unpack with gunzip solarisJFril.tar.gz
tar xvf solarisJFril.tar
Move the library libJFrilLib.so and JFril.class to appropriate directories

Linux shared library libJFrilLib.so <not currently downloadable>

 

The relevant library is loaded automatically by creating an instance of the JFril class (only one instance of this class should be created). The library must be available to java, for example by setting the LD_LIBRARY_PATH environment variable. The precise mechanism varies according to operating system and development environment - see documentation for java.lang.System.loadLibrary and/or your development environment.

Javadoc documentation for JFril is available.

Three examples illustrate the use of Fril within Java. The source files are:

and the demos also use the Fril source files:

In all cases, documentation of the examples is basically what-you-see-is-what-you-get - it's in the nature of a tutorial that you dig into the source code and find out what's going on. No guarantee that it couldn't be done better - any comments, suggestions, etc to Trevor.Martin@bris.ac.uk. It's all ongoing and under development, so check occasionally to see whether there are any new demos or other updates. Have fun.


Example: FakeFril.java

Instructions

****************************************************************************************************************


Example: JTestEmbFril.java

Instructions


 

Example: FrilJavaDemo.java

Instructions