This may help..........
T:\>cd /d C:\TclBlend\bin
C:\TclBlend\bin>jtclsh
% package require java
1.4.0
% java::import javax.net.SocketFactory
% java::call SocketFactory createsocket "good"
no accessible static method "createsocket" in class javax.net.SocketFactory
% set SocketI [ java::new SocketFactory ]
Class "javax.net.SocketFactory" is abstract
===> so use getDefault
% set SocketFactoryI [ java::call SocketFactory getDefault ]
java0x1
% set unconnectedSocket [ $SocketFactoryI createSocket ]
java0x2
2008/11/20 Namita Jain <nam...@tc...>:
>
> Hi ,
>
> I am facing problem in accessing the public method (non-static) of a public
> java class . The error that I receive is
>
> can't find accessible method "createsocket" with 1 argument(s) for class
> "javaso
> cket.EvoTAMClient"
>
> Please find attched the tclblend code and java code which I am using
>
> The interesting point here is that I am able to access the same method
> "createsocket" if I remove the parameters and arguments from method call
> and declaration.
>
> The versions of various products is as follows
> -TclBlend Version:1.4.0
> -TCL version:8.4.13.0
> -Jav version: jdk 1.4.2_12
>
>
> Request you to please provide the cause for this problem and assist me in
> resolving this issue.
>
>
>
> Regards
> Namita Jain
> Mailto: nam...@tc...
> Website: http://www.tcs.com
> ____________________________________________
> Experience certainty. IT Services
> Business Solutions
> Outsourcing
> ____________________________________________
>
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> tcljava-dev mailing list
> tcl...@li...
> https://lists.sourceforge.net/lists/listinfo/tcljava-dev
>
>
|