File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Blatant Advertising and the fly likes Announcement: New BETA TclBlend 1.4 precompiled Binary available for Windows. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Other » Blatant Advertising
Bookmark "Announcement: New BETA TclBlend 1.4 precompiled Binary available for Windows." Watch "Announcement: New BETA TclBlend 1.4 precompiled Binary available for Windows." New topic
Author

Announcement: New BETA TclBlend 1.4 precompiled Binary available for Windows.

Patrick Finnegan
Ranch Hand

Joined: Mar 05, 2002
Posts: 179
A new TclBlend 1.4 precompiled binary is available for Windows. The binary is built from Tcl 8.4.13, Tcl Threads 2.6.3, and TclJava 1.4. It provides full interoperability between Tcl and Java through the use of an embedded JVM and supports existing Tcl extensions or packages such as Expect, Tk,
Tcllib, TclX, Snack and more.

TclBlend should be backwards compatible with all Tcl Scripts written to the Tcl 8.4.13 specification.

The TclJava extension uses the Java Native Interface to dynamically load a JVM within a C program. The extension was compiled against JAVA 1.4.2.12. The java runtime directory is included with the Tcl distro in the same location as the bin and lib directories. The TclJava binary will only work with the embedded JVM.

See http://java.sun.com/j2se/1.4.2/docs/guide/jni/ for more details on JNI.

The TclBlend java programming API uses JACL syntax however it's different to JACL in that it runs as a C process with an embedded JVM. JACL is a port of the core Tcl command set to java and runs inside the JVM. Changes to the Tcl command set have to be back ported to JACL and non core Tcl packages and extensions are not supported by JACL unless they are re-written in JAVA.

Example
******

C:\TclBlend\bin\jtclsh.exe oracleJDBCType4.tcl - connect to oracle using a jdbc driver and tclBlend.
C:\Program Files\Java\bin\java tcl.lang.Shell oracleJDBCType4.tcl -connect to oracle using a jdbc driver and jacl.

There are no non core packages included with the TclBlend distro however packages like Expect, Tcllib etc can be copied over from an existing Tcl installation. Just put them in the lib directory.

e.g copy to C:\tclBlend140Binary\TclBlend\lib

TclBlend can be installed across machines by simply copying the TclBlend/*
directory structure to the target machine.

Install Instructions.
********************

### Strictly BETA. Use at your own risk

1.Download TclBlend binary.

http://www.modejong.com/tcljava/handoff/tclBlend140Binary.zip

2.Unzip the binary to your installation directory.

Unzip to C:\tclBlend140Binary\TclBlend

3.Test.

cd C:\tclBlend140Binary\TclBlend\bin\jtclsh.exe

% package require java
1.4.0

% java::import java.net.InetAddress

% puts "My IP Address is: [ [ java::call InetAddress getLocalHost ] getHostAddress ] "
My IP Address is: 123.4.5.6.7

## Run a script with embedded JVM.

C:\tclBlend140Binary\TclBlend\bin\jtclsh.exe oracleJDBCType4.tcl

[2007-01-30-19.35.15] executing C:\oracleJDBCType4.tcl
[2007-01-30-19.35.15] connection URL is: jdbc racle:thin:xxx/xxxx@xxx:124:yyy
[2007-01-30-19.35.15] transaction isolation level is 2
[2007-01-30-19.35.15] #########################################
[2007-01-30-19.35.15] ### Database connection details
[2007-01-30-19.35.15] #########################################
[2007-01-30-19.35.15] Oracle
[2007-01-30-19.35.15] Oracle9i Enterprise Edition Release 9.2.0.7.0
[2007-01-30-19.35.15] driver version Oracle JDBC driver 10.2
[2007-01-30-19.35.15] jdbc version 10.2
[2007-01-30-19.35.15] transaction isolation level is 2

TclBlend Manual
*******************
http://tcljava.sourceforge.net/docs/TclJava/contents.html

Examples
***********
http://aspn.activestate.com/ASPN/Cookbook/Tcl?kwd=TclBlend

TclBlend WebSite
****************
http://tcljava.sourceforge.net/docs/website/index.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Announcement: New BETA TclBlend 1.4 precompiled Binary available for Windows.