Project Page |  Home |  Forums |  Tracker |  Bugs |  News |  Files |  Cvs


JavaDjVu - Release 0.8.09

This package contains the source code and documentation for JavaDjVu. JavaDjVu consists of a reference library and GUI code that may be used to view and navigate DjVu documents from JVM 1.1 compliant virtual machines.

BUILD REQUIREMENTS:

  1. JDK 1.5.0 or later.
  2. GNU bash, version 2.05b or later. (for command line builds)
  3. NetBeans 4.1 or later. (for GUI builds)

RUNTIME REQUIREMENTS:

  1. One of J2SE Runtime Environment 1.1.4, J2ME 2.0, or newer releases. JIT highly recommended.
  2. At least 64MB of memory.
  3. A java enabled browser such as Internet Explorer, Mozilla Firefox 1.0, or Netfront 3.1.

NON-SUPPORTED RUNTIME ENVIRONMENTS:

If you are not lucky enough to be using the Sun JVM, you can try a Java 1.1 compatible virtual machines. Visit:

for a list of virtual machines to try.

INVOKING THE VIEWER:

Primarily, the viewer is intended to be used as an applet. The instructions in Deployment.html will guide you deploying the applet on your website. There is limited support for running the viewer as a standalone application. To do so, you must have Java 1.3 or later installed and in your search path. Assuming both javadjvu.jar and foo.djvu are in the current directory, the following command line would be used to view foo.djvu:

Actually any valid URL may be used. For example, when debugging the following commandline is invoked:

Note that the web browser built into Java does not support current standards. Consiquently, few websites can actually be browsed successfully with the viewer.

BUILD INSTRUCTIONS:

If you have NetBeans, you may load javadjvu as a NetBeans project and build, debug, and test from there. Otherwise you may install and configure GNU bash with your JDK path and execute the following command line:

The resulting files will be populated into the build directory. You may test your build with the command:

This should open a standalone application browsing the document in the examples directory. You are now ready to copy the DjVuApplet.class and javadjvu.jar file to your website.

DEPLOYMENT INSTRUCTIONS:

Basic instructions for deploying a document are listed in the Deployment.html file.

ADVANCED BUILD INSTRUCTIONS:

JavaDjVu contains the optional components:

Each of these components adds to the functionality of the build, at the cost of a larger file size and a longer download time.

The default is to build all optional components but you may do a custom build with just the features you wish to use by listing only the features you want on the build.sh command line. For example, if you wanted to build an applet with only menu navigation, and no support for hidden text or annotations you would use the command:

If you are using NetBeans to build the applet, then comment out the properties in the build.properties file for the optional components you do not want to include. For example to disable the menu option you would change the line:

to:

The optional components are further described below:

applet: (adds approximately 137 bytes to the build)
menu: (adds approximately 5036 bytes to the build)
keys: (adds approximately 1528 bytes to the build)
toolbar: (adds approximately 34012 bytes to the build)
text: (adds approximately 9988 bytes to the build)
anno: (adds approximately 23358 bytes to the build)
outline: (adds approximately 8709 bytes to the build)

CHANGES:

Version 0.8.08 to 0.8.09
Version 0.8.07 to 0.8.08
Version 0.8.06 to 0.8.07 (DOA)
Version 0.8.05 to 0.8.06
Version 0.8.04 to 0.8.05
Version 0.8.03 to 0.8.04
Version 0.8.02 to 0.8.03