This problem is fixed in Tcl Blend 1.2.6 and in the CVS.
Mo Dejong
Red Hat Inc.
On Thu, 16 Mar 2000, Ian F. Graham wrote:
> Thanks for the reply. Actually I wasn't consciously trying to load tcl
> Blend, I was just trying to the demo to work. Now that you mention it, I
> realise why it cannot work (Java will not let you) but that then throw's up
> the question, how do I get the demo to work ? Following the instructions in
> the Readme doesn't really help me.
>
> I'm pretty sure I'm missing some crucial (but simple) point here - since the
> demo source (and I am trying to run it from the original source) doesn't
> contain any reference to tclblend where is the load coming from ?
>
> As to the source distribution I agree with you, if the pyramidpkg demo is
> not a TclBlend demo then it doesn't belong in the tclBlend source
> distribution.
>
> Maybe you (or someone in the list) give me some pointers on my problem. I
> have a large tcl app with an exported set of tcl commands. Some of these are
> implement in C, others are pure tcl procs (dependent on the level of access
> required by the user). What I need to do is provide an interface to this
> from Java. The first thought is JNI, but that excludes the commands written
> in Tcl, so that is where TclBlend comes in (I think). Can you confirm that
> my approach is correct and if not give me some pointers ?
>
> Thanks for the help,
>
> Ian
> -----Original Message-----
> From: Mo DeJong [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 15, 2000 10:32 PM
> To: Ian F. Graham
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Tcl Java] tclBlend: pyramidpkg possible path problem ?
>
> It looks like you are trying to load Tcl Blend into an applet.
> This is not possible because Java will not let you do it.
> You should be able to run Jacl in an applet as long as you
> do not load the java package, but Tcl Blend in an applet will not work.
>
> Perhaps we should change the Makefile so that it does not include
> the pyramid demo in the tclBlend source dist.
>
> Mo DeJong
> Red Hat Inc.
>
>
> On Wed, 15 Mar 2000, Ian F. Graham wrote:
>
> > C:\ian_home\java\TclBlendSrc125\tclBlend1.2.5\demos\pyramidpkg>
> >
> > As error text goes it is not one of the most helpful I have seen, and I am
> > having great difficulty finding out what is wrong here. I'm sure it is
> some
> > sort of path/configuration problem. I have copied the tclblend.dll to the
> > local directory to ensure that it is found, but this also fails. I'm sure
> it
> > some setting which I am overlooking. Can anyone help ?
> >
> > To try and isolate the problem, I also tried out the Java Plugin with
> > Netscape and IE and got the following error (after I modified pyramid.html
> > to accommodate the plugin):
> >
> > IE:
> >
> > Java(TM) Plug-in: Version 1.2.2.px
> >
> > Using JRE version 1.2.2
> >
> > JAR cache enabled.
> > System.loadLibrary("tclblend") failed because of Unknown Throwable
> > java.security.AccessControlException: access denied
> > (java.lang.RuntimePermission loadLibrary.tclblend )
> > at
> >
> java.security.AccessControlContext.checkPermission(AccessControlContext.java
> > :195)
> > at
> > java.security.AccessController.checkPermission(AccessController.java:403)
> > at
> > java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
> > at
> java.lang.SecurityManager.checkLink(SecurityManager.java:824)
> > at java.lang.Runtime.loadLibrary0(Runtime.java:464)
> > at java.lang.System.loadLibrary(System.java:778)
> > at tcl.lang.Interp.<clinit>(Interp.java:32)
> > at Pyramid.init(Pyramid.java:52)
> > at sun.applet.AppletPanel.run(AppletPanel.java:333)
> > at java.lang.Thread.run(Thread.java:479)
> > java.lang.UnsatisfiedLinkError: create
> > at tcl.lang.Interp.<init>(Interp.java:130)
> > at Pyramid.init(Pyramid.java:57)
> > at sun.applet.AppletPanel.run(AppletPanel.java:333)
> > at java.lang.Thread.run(Thread.java:479)
> >
> > ======
> >
> >
> > And Netscape:
> >
> >
> > System.loadLibrary("tclblend") failed because of Unknown Throwable
> >
> > netscape.security.AppletSecurityException: security.checklink: tclblend
> > at java.lang.Throwable.<init>(Compiled Code)
> > at java.lang.Exception.<init>(Compiled Code)
> > at java.lang.RuntimeException.<init>(Compiled Code)
> > at java.lang.SecurityException.<init>(Compiled Code)
> > at netscape.security.AppletSecurityException.<init>(Compiled Code)
> > at netscape.security.AppletSecurityException.<init>(Compiled Code)
> > at netscape.security.AppletSecurity.checkLink(Compiled Code)
> > at java.lang.SecurityManager.checkLink(Compiled Code)
> > * at java.lang.System.loadLibrary(Compiled Code)
> > at tcl.lang.Interp.<clinit>(Interp.java:32)
> > at java.lang.UnsatisfiedLinkError: create
> > at tcl.lang.Interp.<init>(Compiled Code)
> > at Pyramid.init(Compiled Code)
> > * at netscape.applet.DerivedAppletFrame$InitAppletEvent.dispatch(Compiled
> > Code)
> > at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
> > at java.awt.EventDispatchThread.run(Compiled Code)
> > at
> > netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled
> > Code)
> >
> > So do I have to set some security somewhere other than in the
> Plugin-Control
> > Panel ?
> >
> > I get the feeling that these messages could be red herrings. Has anyone
> had
> > a similar experience or can see what my problem is ? Any help or hints
> > taken.
> >
> > Ian
> >
> >
> >
> > ============================================================
> > Ian F Graham Tel: ++49 (0)611 1731-606
> > Projekt-Management
> > Patzschke + Rasp Software AG Fax: ++49 (0)611 1731-31
> > Bierstadter Straße 7 mailto:[EMAIL PROTECTED]
> > D-65189 Wiesbaden Web Site: http://www.prs.de
> > ============================================================
> >
> >
>
>
----------------------------------------------------------------
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]'.
An archive is available at http://www.mail-archive.com/tcljava@scriptics.com