Try setting classpath to the jar file.
-----Original Message-----
From: Nandu Chowdhury
Sent: 06/01/2011 5:13:44 pm
Subject: [tcljava-user] Problem running pyramidpkg demo
Hi,
I'm trying to compile and run jacl demo : pyramidpkg.
It seems it can compile fine but it gives class-not-found exception when I
try to run it.
I get following exception:
==================================================
linux_propmy > appletviewer pyramid.html
java.lang.NoClassDefFoundError: tcl/lang/TclEvent
at Pyramid.init(Pyramid.java:53)
at sun.applet.AppletPanel.run(AppletPanel.java:418)
at java.lang.Thread.run(Thread.java:619)
==================================================
I have checked that TclEvent class is present in my CLASSPATH settings.
I strongly suspect that the exception is caused because TclEvent class is an
abstract-class.
But I believe we're doing everything right - we do not make a direct
instance of class TclEvent
instead we do implement the abstract function present inside the class.
Any help to resolve this issue will be helpful.
I'm really looking to attach a TCL console to an existing JAVA application.
How can I do it?
Please help.
Thanks,
-Nandu.
|