From: Josh J. <jun...@gm...> - 2011-03-26 00:08:07
|
Prasanna- Sorry to hear that you are running into troubles using Jython from within a Java application. It is difficult to diagnose the issue without seeing the code for your Java class, the interface, and the Jython class that you are having issues with. However, at first glance this does not appear to be an object factory (PlyJy) issue. To be certain, can you please implement an entire object factory as described within the pages of the jython book rather than using PlyJy? Object factories are discussed here: http://www.jython.org/jythonbook/en/1.0/JythonAndJavaIntegration.html#using-jython-within-java-applications I have a feeling that you may see the same issues while using a complete object factory implementation, but this will at least rule out PlyJy. On the other hand, if it turns out to be an issue with PlyJy, then we will be in position to help debug the issue from that angle. Thanks, Josh Juneau jun...@gm... http://jj-blogger.blogspot.com http://www.jythonpodcast.com Twitter ID: javajuneau On Mar 25, 2011, at 4:44 PM, Prasanna Guru <gur...@ya...> wrote: > Hello, > > I am trying call jython scripts from java application. I am able to execute the > python scripts and i am able to most of the thing sin python script. I get error > if use the following the python/jython script > > 1. import urllib2 > 2. import socket > 3. open("xxx","w") where xxx is some file name with path. > > i am trying this in AIX. > > Regards > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |