javatcljacl

How can I provide a Jacl package from the classpath?


I need to distribute some TCL code as part of an enterprise application, and this code must be available to all nodes in the cluster. Due to security policy, the Tcl interpreter cannot access the TCL code from the filesystem, so I must make it available in a jar in the EAR itself.

How can I convince Jacl (1.4.1, if it matters) to find a pkgIndex.tcl for a package on the classpath?


Solution

  • Jacl is looking for pkgIndex in the variable auto_path

    if you execute the command puts $auto_path you see the entires for example:

    resource:/tcl/lang/library

    add your path with : lappend auto_path resource: