Hope this stops someone else wasting a bunch of time.

My problem with 'java::import -package medical Simulation' not working when
it seemed it should (and when it worked yesterday) turned out to be the
following:

(i) my code, tclBlend, java etc were all 100% fine.
(ii) I had a directory 'medical' full of my class files, BUT I also happened
to have created a .zip file 'medical.zip' which also contained all those
class files (just there temporarily to email to someone to run my software),
and both the 'medical' directory and the medical.zip file were in [pwd].

For whatever reason, the java::import -package medical looked first at the
medical.zip file, and ignored the 'medical' directory and failed with an ""
error.  I have no idea whether this should be considered correct behaviour,
or whether tclBlend should have either (i) ignored the zip file and run my
code properly, or (ii) actually used the zip file (which, after all,
contained perfectly good .class files) and run properly.

The solution of course was to delete the zip file.

While I'm here, does anyone have any suggestions for:

(i) best approach for debugging java code which is only called from Tcl.
(ii) can tclBlend/java be used in the tcl plugin (after special
compilation?)?

cheers,

Vince.

----------------------------------------------------------------
The TclJava mailing list is sponsored by Scriptics Corporation.
To subscribe:    send mail to [EMAIL PROTECTED]  
                 with the word SUBSCRIBE as the subject.
To unsubscribe:  send mail to [EMAIL PROTECTED] 
                 with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'. 

Reply via email to