Sept 22, 2003 CB
Inspired by Building JACL with msys I try to do my part to advance the cause of TclJava.
In this page I will try to relate some (hopefully) useful information for any other newish tclers who might want to try TclBlend on Windows. (Based on my experience trying to get it working)
These steps are only for TclBlend 1.3.1. Hopefully they will be slightly smoother for 1.3.2
Steps:
First (Downloads):
Second (Unzip):
Third (Install JDK):
Forth (Tell msys where JDK is located - from Building JACL with msys):
1. Create a directory called profile.d in the /etc directory
mkdir /etc/profile.d
2. Take the following script (see Building JACL with msys) and modify it to match your jdk install directory
JDK=/opt/j2sdk1.4.2 <CHANGE THIS LINE TO MATCH YOUR ACTUAL INSTALL DIRECTORY> JRE=$JDK/jre if [ -d $JDK ]; then PATH=$PATH:$JDK/bin CLASSPATH=.:$JDK/lib/tools.jar:$JDK/lib/dt.jar:$JRE/lib/rt.jar:$JRE/lib/jsse.jar:$JRE/lib/jce.jar export PATH CLASSPATH fi
3. Save the script as jdk.sh in the directory /etc/profile.d that you just created
Fifth (Build Tcl):
Sixth (Build Tk):
Seventh (Build threads package):
Eighth:
NOTE: It is simplest if you refer to the jdk directory with its full path name. To refer to the C: drive you start the path in msys with /c/ so if the jdk were in C:\jdk131 the configure directive would be --with-jdk=/c/jdk131
Ninth (Build JACL - if desired) See also Building JACL with msys:
NOTE: At this point Everything is installed and should be working. You will find it in /c/msys/local/bin. (You will find JACL wherever you told it to install) Run TclBlend by starting the jtclsh or jwish scripts. They will set up all the environment variables you need and then start the interpreter. These must be run in msys, not under a regular cmd prompt.
Comments: You will almost certainly want to get tkcon for interactive use since msys does weird things to the tcl shell (it doesn't display toplevel responses from the shell).
Run it as:
jwish tkcon.tcl
Once in tkcon do:
package require java