Home
Categories
Dictionnary
Download
Project Details
Changes Log
FAQ
License

Distribution



The library is distributed with several zip files:

Core distribution

The javaXUL-bin-<version>.jar zip file contains the core distribution for the library. This zip file contains:
  • The javaXUL.jar Jar file which cotnains the library for the framework
  • The lib directory which contains the scripting library and the Javascript language implementation
  • The scriptlib directory which contains the scripting languages implementation (Groovy, Ruby, and Python)
  • The xulBrowser Jar file which contains the code for the browser

Installation

You only need to unzip the content of the javaXUL-bin-<version>.jar zip file anywhere.

Reducing the size of the install

You can reduce the size of the installation if you don't need all of the scripting languages:
  • If you don't need Groovy, you may remove the scriptHelperGroovy.jar and groovy-xxx-indy.jar jar files from the scriplib directory
  • If you don't need Ruby, you may remove the scriptHelperRuby.jar and jruby.jar jar files from the scriplib directory
  • If you don't need Python, you may remove the scriptHelperPython.jar and jython.jar jar files from the scriplib directory

Usage in a library

You will need to put the javaXUL.jar Jar file in your classpath, and also add in your class path the libraries for the scripting languages you want to support[1]
Note that Javascript is supported by default
:
  • For Groovy: The scriptHelperGroovy.jar and groovy-xxx-indy.jar jar files from the scriplib directory
  • For Ruby: The scriptHelperRuby.jar and jruby.jar jar files from the scriplib directory
  • For Python: The scriptHelperPython.jar and jython.jar jar files from the scriplib directory
It may also be necessary to take care of the ClassLoader by calling the ScriptManager.setClassLoader(ClassLoader) method.

Notes

  1. ^ Note that Javascript is supported by default

Categories: general

Copyright 2008-2020 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence