RE: [tcljava-user] Java loader failed to load the class
Brought to you by:
mdejong
From: Zapar, W. <Wil...@Ca...> - 2006-04-20 13:49:55
|
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=20 java package ver =3D 1.3.2 java system version =3D 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=20 -----Original Message----- From: tcl...@li... [mailto:tcl...@li...] On Behalf Of Mo DeJong Sent: Wednesday, April 19, 2006 7:57 PM To: tcl...@li... Subject: Re: [tcljava-user] Java loader failed to load the class On Tue, 18 Apr 2006 16:02:49 -0400 "Zapar, Will" <Wil...@Ca...> 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=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ tcljava-user mailing list tcl...@li... https://lists.sourceforge.net/lists/listinfo/tcljava-user |