RE: [tcljava-user] Java loader failed to load the class
by Will Zapar other posts by this author
Apr 20 2006 6:50AM messages near this date
Re: [tcljava-user] Java loader failed to load the class
|
[tcljava-user] Re: What is the real JACL license?
Mo,
I made the change and now I am getting a different error:
set env(TCL_CLASSPATH)
"$env(TCL_CLASSPATH):/opt/BACCTools/lib/bprjar/com/cisco/provisioning/cp
e:/opt/BACCTools/lib/bpr.jar:/usr/local/lib/tcljava1.3.2/tcljava.jar:/us
r/local/lib/tcljava1.3.2/tclblend.jar:/usr/java/jdk1.5.0_06/jre/lib/rt.j
ar";
### this is for all jar files in /opt/BACCTools/lib/
set env(CLASSPATH)
"$env(CLASSPATH):/opt/BACCTools/lib/bpr.jar:/opt/BACCTools/lib/suite.jar
:/opt/BACCTools/lib/bcprov-jdk14-116.jar:/opt/BACCTools/lib/commons-code
c-1.3.jar:/opt/BACCTools/lib/commons-httpclient-3.0-rc2.jar:/opt/BACCToo
ls/lib/commons-logging.jar:/opt/BACCTools/lib/dom.jar:/opt/BACCTools/lib
/org.mortbay.jetty.jar:/opt/BACCTools/lib/saaj-api.jar:/opt/BACCTools/li
b/saaj-impl.jar:/opt/BACCTools/lib/xalan.jar:/opt/BACCTools/lib/xercesIm
pl.jar";
#arrArrayDump env 0; # dump the environment variables
#CHANGE MADE HERE without use of .class ext
java::load -classpath
/opt/BACCTools/lib/bprjar/com/cisco/provisioning/cpe
com.cisco.provisioning.cpe.PACEConnectionFactory;
-bash-2.05b$ ./tcljava.tcl
java package ver = 1.3.2
java system version = 1.5.0_06
Java in TCL is working!
load "com.cisco.provisioning.cpe.PACEConnectionFactory" failed: not a
subclass of tcl.lang.Extension
while executing
"java::load -classpath
/opt/BACCTools/lib/bprjar/com/cisco/provisioning/cpe
com.cisco.provisioning.cpe.PACEConnectionFactory"
(file "./tcljava.tcl" line 48)
Thoughts?
Regards,
Will
-----Original Message-----
From: tcljava-user-admin@[...].net
[mailto:tcljava-user-admin@[...].net] On Behalf Of Mo DeJong
Sent: Wednesday, April 19, 2006 7:57 PM
To: tcljava-user@[...].net
Subject: Re: [tcljava-user] Java loader failed to load the class
On Tue, 18 Apr 2006 16:02:49 -0400
"Zapar, Will" <Will_Zapar@[...].com> wrote:
> "java::load -classpath
> /opt/BACCTools/lib/bprjar/com/cisco/provisioning/cpe/
>
java.lang.Object.com.cisco.provisioning.cpe.PACEConnectionFactory.class"
> (file "./tcljava.tcl" line 54)
Will, you need to pass the name of the class, not including the trailing
".class" bit at the end. For example, [java::load foo.bar.Baz] not
[java::load foo.bar.Baz.class].
I hope that was the cause of your problem, your post includes many many
lines of code, far to many to scan through. Postings should just include
a little snip of code that causes the problem.
cheers
Mo DeJong
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
tcljava-user mailing list
tcljava-user@[...].net
https://lists.sourceforge.net/lists/listinfo/tcljava-user
Thread:
Will Zapar
Mo DeJong
Will Zapar
|