[Tcl Java] simple Java-Tcl callback

2000-04-12 Thread Vince Darley
Title: simple Java-Tcl callback I'm trying to have more heavy interaction between my Tcl code and Java. In particular I want to be able to pass in a Tcl command to the Java, and have it executed at certain intervals, where that command takes a Java object as a parameter: proc callback

[Tcl Java] RE: [Tcl Java] External classloader for JACL

2000-03-02 Thread Vince Darley
Title: RE: [Tcl Java] External classloader for JACL I'd like to see a kind of 'java::unknown' facility, in which if the class loader can't find a class, it calls 'java::unknown {className}', which by default returns null, but can try to find the class itself (from Tcl/Jacl) and if it finds it

[Tcl Java] defineclass vs new problems

2000-01-22 Thread Vince Darley
Title: defineclass vs new problems I'm still running into problems trying to use 'java::defineclass $data' vs just using java::new. I have a very simple class which just fails to be loaded with defineclass, but is very happy with new. I've been unable to track down exactly why it fails: seems

[Tcl Java] RE: [Tcl Java] defineclass vs new problems

2000-01-22 Thread Vince Darley
Java] defineclass vs new problems defineclass is known to be broken with JDK 1.2.x on Solaris only, the bug in question does not occur with JDK 1.1.x on any platform or on JDK 1.2.x on any platform other than Solaris. Which JDK are you using and on which platform? -- Scott Vince Darley

[Tcl Java] using java::defineclass

2000-01-05 Thread Vince Darley
Title: using java::defineclass I'm trying to place all the class data from my package's .class files inside Tcl files as binary strings for loading when required. As a first step in that direction, I've created the following proc, which simply takes all .class files in a given directory, and

[Tcl Java] Re: [Tcl Java] using java::defineclass

2000-01-05 Thread Vince Darley
Title: Re: [Tcl Java] using java::defineclass -Original Message- From: Mo DeJong [mailto:[EMAIL PROTECTED]] Off the top of my head, I would be willing to bet that the problem you are having is because a class you want to define depends on another class that can not be found.

[Tcl Java] RE: [Tcl Java] Re: [Tcl Java] Re: [Tcl Java] problem on win98/95

1999-12-01 Thread Vince Darley
Well, except that when this happens from within Tcl it appears to completely violate Tcl's semantics about variables: set env(CLASSPATH) "" puts $env(CLASSPATH) gives an error! While this may be a _peculiarity_ of Windows, I think Tcl needs to be coded to avoid this, not to label it as a

[Tcl Java] possible double conversion problem

1999-11-22 Thread Vince Darley
I've been using tcljava to wrap a nice gui around some java simulation code. I extract a bunch of data from the code and display it. The problem is that, every now and again, the result of a simple call to a static method which returns a double: lappend productivity [java::call DataGather

[Tcl Java] solution to some problems with TclBlend/Tcl8.2

1999-11-12 Thread Vince Darley
I had a bunch of problems recently which have finally been resolved with Mo's help. I'm using jdk1.2.2/tcl8.2.2/tclblend1.2.5 on Windows NT, and found that 'package require java' would work fine if typed into a console, but would crash wish if it was in a .tcl file which was double-clicked to