I mistyped, you should include tcljava.jar and jacl.jar, not
tclblend.jar and jacl.jar.

The echoed symbols problem is well known, someone posted a fix to it
awhile back, see
http://www.mail-archive.com/tcljava@tclconsortium.org/

I'm not sure what is up with pyramidpkg, looks like a classpath
problem to me.

If I copy the .jar files to demos/pyramidpkg and change pyramid.html
so that it has an archive= statement, then it works for me:
    <applet codebase="." 
        archive="tcljava.jar,jacl.jar"
        code=Pyramid.class width=450 height=550>
    </applet>

To recompile pyramidpkg, look at either unix/Makefile
or win/makefile.vc

Under Unix, you could try:
cd demos/pyramidpkg
setenv CLASSPATH ../../unix/tcljava.jar:../../unix/jacl.jar:.
javac Pyramid.java

> Finally, is it possible to develop applet, which contains Tcl-shell,
> extended with new Java-based command, using Tcl Blend, instead of
> Jacl?

Yes, from Tcl Blend, you should be able to access the Java Applet
class, but I'm not sure if this is really what you want.

Client-size Applets are typically Java .class files that are
downloaded to your browser and then run.  Tcl Blend is a C language
library that is loaded into a C language Tcl binary (tclsh or wish)
which in turn loads the Java shared libraries at runtime.  As a result,
there downloading just the tclblend.jar and tcljava.jar files would
not be enough, since you still need the usual Tcl C language binary.

For applets, you probably want to use Jacl.

-Christopher


--------

    Christopher Hylands wrote:
    
    > Yep, there should be a Jacl Windows installer.
    > To use Jacl under Windows, place tclblend.jar and jacl.jar in your
    > CLASSPATH
    > Then do
    > java tcl.lang.Shell
    >
    > I have some notes about using Jacl in an applet at:
    > http://ptolemy.eecs.berkeley.edu/~cxh/java/jaclapplet/index.html
    >
    > -Christopher
    > --------
    
    Thanks, Christofer, for your answer,
    
    But in main directory of Jacl 1.1.1 there are only jacl.jar and tcljava.jar
    files (no tclblend.jar). Ando also there is no installer for Windows.
    
    When I used
    
    java tcl.lang.Shell
    
    I was unable to see typed symbols, but after pushing the "return" button
    commands were implemented. Strange effect ...
    
    I decided to run pyramidpkg program to test Tcl shell in java applet, but a
   fter
    starting "appletviewer piramid.html", a saw the message:
    
    Applet not initialized
    
    java.lang.NoClassDefFoundError: tcl/lang/Command
      at java.lang.Class.newInstance0(Native Method)
      at java.lang.Class.newInstance(Class.java:239)
      at sun.applet.AppletPanel.createApplet(AppletPanel.java:532)
      at sun.applet.AppletPanel.runLoader(AppletPanel.java:468)
      at sun.applet.AppletPanel.run(Compiled Code)
      at java.lang.Thread.run(Tread.java:479)
    
    What could be the reason?
    
    How could I recompile files of piramidepkg? I was unsuccessful doing it wit
   h
    "javac Piramid.java" command.
    
    I use Windows NT 4.0/jdk1.2/Tcl 8.0.5/Jacl and Java Blend 1.1.1
    
    Finally, is it possible to develop applet, which contains Tcl-shell, eexten
   ded
    with new Java-based command, using Tcl Blend, instead of Jacl?
    
    Thanks, sorry for a number of questions,
    
    Igor.
    
    
    
--------

----------------------------------------------------------------
The TclJava mailing list is sponsored by WebNet Technologies.
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]'. 
A list archive is at: http://www.findmail.com/listsaver/tcldallas/

Reply via email to