From: Daniel L. <da...@br...> - 2001-04-11 22:05:01
|
Maybe I am missing somethign here and I certainly don't know the details of what you are doing nor what your are trying to accomplish, but I thiink circumventing the security model for Jython/Java is an ugly, uncreative, and dangerous way to do anything. You should rethink the security mechanism implementation to somehow include the key in the pre-jar code and then jar it up so the check sum is correct. Or use another type of file in the CLASSPATH since the JVM doesn't need to read it and it's just a key why are you jaring it at all? Otherwise anyone using your code is opening up a security hole a truck could drive through. This sounds like something M$ would do ;-) (that's a joke don't get offended) ----- Original Message ----- > Message: 4 > Date: Tue, 10 Apr 2001 11:12:47 -0400 > From: D-Man <ds...@ri...> > To: jyt...@li... > Subject: [Jython-users] "bad" jars > > > I want to use jython to interactively test some Java work I did. > Unfortunately for this situation, jython caches all jar information > and skips any jar that is corrupt. My Java work consists of storing > some information (license key) in a jar in the CLASSPATH. Of course, > doing this (in the only way I could come up with) causes that > particular file to be "corrupt" because it no longer matches the CRC > checksum or the compression algorithm. This is acceptable because > this file is never loaded by the JVM, but read directly by my code. > > When I want to test it with Jython, jython doesn't load the jar > because it is "bad". As a result I don't get any of the classes that > are defined in the jar. > > Is there a way to turn off jython's processing and caching of the > jar's information so I can use this modified (err, hacked <wink>) jar? > If not, I can write some Java code to run through some tests. > > Thanks, > -D > > > > --__--__-- > > Message: 5 > From: Rafael Harispe <rha...@to...> > To: jyt...@li... > Date: Tue, 10 Apr 2001 14:34:11 -0300 > Subject: [Jython-users] select module not found in Jython > > Hello, i{m a beginner with Jython and I am trying whit a socket server > program with miltithread. > I found that secket.recv method block the thread, so I am trying to use de > select.select method, jython interpreter say... > ImportError: no module named select > > > Thanks a lot, and nice to meet you!!! > > PD: sorry, my English is not good. > > > > --__--__-- > > Message: 6 > Date: Tue, 10 Apr 2001 14:40:55 -0500 > To: Rafael Harispe <rha...@to...>, > jyt...@li... > From: brian zimmer <bz...@zi...> > Subject: Re: [Jython-users] select module not found in Jython > > Rafael, > > select() is not supported in Java so in order to get the same functionality you'll have to resort to a JNI implementation, such as the one at: > > http://www.cs.berkeley.edu/~mdw/proj/java-nbio/ > > Java uses a multi-threaded approach to handle multiple concurrent transactions. > > brian > > At 02:34 PM 4/10/2001 -0300, Rafael Harispe wrote: > >Hello, i{m a beginner with Jython and I am trying whit a socket server > >program with miltithread. > >I found that secket.recv method block the thread, so I am trying to use de > >select.select method, jython interpreter say... > >ImportError: no module named select > > > > > >Thanks a lot, and nice to meet you!!! > > > >PD: sorry, my English is not good. > > > > > >_______________________________________________ > >Jython-users mailing list > >Jyt...@li... > >http://lists.sourceforge.net/lists/listinfo/jython-users > > > > > --__--__-- > > Message: 7 > Date: Wed, 11 Apr 2001 11:47:32 -0700 > From: Jim Adrig <ji...@tr...> > Organization: Resource Management Systems > To: Jyt...@li... > Subject: [Jython-users] Re: Finding documentation (was [Jython-dev] overlooked details) > > I'm moving this to 'users' so readers there can see it too...most of the > 'dev' guys read 'users' too... > > Jayson Baird wrote: > > > > hehe I didn't know of execfile's existence.. there's no real documentation > > for jython available... yet :) > > I know it's hard to find it all sometimes, so here's some tips. There > actually IS a lot available, just not a lot of 'easy-to-digest' samples, > etc. The API refs are mostly there (at least at the 'top-level'), > although they are sometimes brief. > > I dragged the following shortcuts to the documentation onto my desktop > for quick access: > > C:/<installdir>/Jython/Doc/index.html > C:/<installdir>/Jython/Doc/api/index.html > > For example, to find 'exec' and 'execfile': Library Reference, Index > button, 'e'. Notice this exits to the original Python docs. (of course > you could just shortcut these directly...) > > Using the second link (Jython API): click PythonInterpreter on the left, > and there's 'exec' and 'execfile' (although with NO details: those are > in the Python docs ;^)...) > > If you using JBuilder, be sure and set up your 'Documentation' tab in > the 'Configure Libraries' screen ( mine is set to > 'C:/<installdir>/Jython/Doc/api' ). That way you can just put the cursor > over a class keyword (PythonInterpreter, PyOjbect, etc) OR any instance > of the class ('interp', etc) and <ctl>-<enter> to the source, then click > on the 'Doc' tab and POOF! You're there!... > > If you use JBuilder this instant access to Source and Docs can't be > beat! > > -- > __o > Jim Adrig _ \<,_ > ji...@tr... ' `/ ' ` > ___________ `-' `-' > > > > --__--__-- > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > http://lists.sourceforge.net/lists/listinfo/jython-users > > > End of Jython-users Digest > |