How to use the tclJBlend package


Before starting..

What you need:

Supported Tcl versions are 8.5.X and 8.6.X (and further ..) , excluding Tcl versions from 8.6.1 to 8.6.5> ( see Ticket 07d13d99b0 for full details).

About the JavaVM, you can use any JRE already 'present' on your system ; it's not required JRE be 'installed' i.e. you don't need java.exe be in PATH, nor other special variable such as JAVA_HOME need to be set (nor the JRE need to be registered in the Windows Registry').

Download JBlend or JBlend+JVM

Download from Sourceforge the last public release. You can choose among the following variants: Please note that the os (win/linux/darwin) and the architecture (x32/x64) of the JBlend+JVM distro must match with the os/architecture of your Tcl Interpreter, and so the os/architecture of the optional, external JVM you choose to 'link' to JBlend.

Install and configure

Unzip the downloaded package and place it as a subdirectory of one of the Tcl 'lib' directories. Alternatively, you can leave it 'out of Tcl' (e.g. in a temporary directory just for testing), provided later you tell Tcl where JBlend is placed.

If you downloaded and installed (unzip) a JBlend+JVM distro, you are ready to run,
otherwise you should tell JBlend where your JRE is located, or more precisely, where the Java dynamic library jvm.dll ( or libjvm.so (Linux) or libjvm.dylib (MacOS) ) is located.
There are two ways to configure JBlend, as explained in the next section.

Configuring JBlend

You can skip this section if you downloaded JBlend+JVM, or if you are not interested in using an external JRE

There are two ways to configure JBlend, that is, to link JBlend with an external JRE:

Now you are ready to run ..

Running JBlend

Once you properly installed and (optionally) configured JVMcfg.tcl, you just need

   # Uncomment and adapt the following line if JBlend is not placed in a directory
   #  referenced by the auto_path variable.
   #
   # lappend auto_path ...where-is-JBlend..
   #
   package require JBlend

....
that's all!

Note that even if the special global variable ::JBlend_JVM is hard-coded in the configuration file JBlend/JVMcfg.tcl, if you set this variable somewhere before loading the JBlend package, this new value takes the precedence over the hard-coded configuration.
If you want to be sure to use the hard-coded configuration, unset the variable before loading the package


Based on TclBlend Copyright © 1994-1998 Sun Microsystems, Inc.
JBlend is Copyright © 2016 - Irrational Numbers.