Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #39501
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: What's wrong with this Java Jython call? |
| Date | Sun, 14 Jun 2020 16:23:40 +0200 |
| Organization | A noiseless patient Spider |
| Lines | 61 |
| Message-ID | <rc5bte$n73$1@dont-email.me> (permalink) |
| References | <rau7st$qme$1@reader1.panix.com> <raucre$g2o$1@dont-email.me> <rbdn79$dec$1@reader1.panix.com> <rbebve$9qs$2@dont-email.me> <rbec7f$c37$1@dont-email.me> <rbg6jn$41t$2@reader1.panix.com> <rbgoch$d3a$1@reader1.panix.com> <rbgr5h$ddu$1@dont-email.me> <rc2cfu$lul$1@reader1.panix.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Sun, 14 Jun 2020 14:23:43 -0000 (UTC) |
| Injection-Info | reader02.eternal-september.org; posting-host="262054e33c290041dc06be326ce34362"; logging-data="23779"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18lYjd8ny2ks8JdkpnXs4AC" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 |
| Cancel-Lock | sha1:FO14VlwyZ6kZNZd6X07pxS/6uOI= |
| In-Reply-To | <rc2cfu$lul$1@reader1.panix.com> |
| X-Antivirus-Status | Clean |
| Content-Language | en-US |
| X-Antivirus | AVG (VPS 200614-0, 06/14/2020), Outbound message |
| Xref | csiph.com comp.lang.java.programmer:39501 |
Show key headers only | View raw
On 2020-06-13 13:15, vjp2.at@at.BioStrategist.dot.dot.com wrote:
> First, many thanks.
>
> Here's where I am.
> 1. Is the ";jython" correct?
> 2. I added -jar to run jython alone
> 3. the "wrappers" are files with extension .i
> 4. I posted a question on the RDKIT sourceforce list, no reply
> 5. Yes, I removed the script, but how do I use it to init then return to
> prompt? TEE? |?
>
> Thanks again
>
> @echo off
> SET RD_HOME=.
> SET JAVA_HOME=..\CommonFiles\JAVA
> SET JAVA_COMMAND=%JAVA_HOME%\bin\java.exe
> SET LOCAL_CLASSPATH=%RD_HOME%\org.RDKit.jar
> "%JAVA_COMMAND%" -classpath "%LOCAL_CLASSPATH%" -jar "%JAVA_HOME%"\jython-standalone-2.5.jar; jython -Djava.library.path="%RD_HOME%"\rdkit-master\Code\JavaWrappers\gmwrapper
> rem if remove semicolon complains jython not found in rdkit - of course it's in common
> rem able to run jython as jar run print "hello" or print 3+4
> rem some docs have rdkit.jar in gmwrapper; what are dlls but no exe doing here?
> pause
> rem < "%RD_HOME%"\start.rdk
> rem how can I run this and return to prompt?
> :END
>
> rem these are in start.rdk
> rem from org.RDKit import *
> rem from java import lang
> rem lang.System.loadLibrary('GraphMolWrap')
> rem m = RWMol.MolFromSmiles('c1ccccc1')
> rem m.getNumAtoms()
> 6L
> if remove semicolon complains jython not found in rdkit - of course
it's in common
This is weird.
What happens if you just run `jython` on the command line? From what I
could see the default jython install puts it on the $PATH. IOW what
happens if you remove everything from your line up to and including the
semicolon?
> how can I run this and return to prompt?
What is the problem exactly?
Is the script launching a background process that you wish to keep
alive, equivalent to running in background on Unix?
Or is the script supposed to return a value, but for some reason it's
not exiting properly and you would like it to exit properly?
If the latter, try adding a `sys.exit` at the end of your python code.
Maybe the loadLibrary call or something else that library does is
keeping the JVM alive.
--
DF.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
What's wrong with this Java call? vjp2.at@at.BioStrategist.dot.dot.com - 2020-05-30 18:15 +0000
Re: What's wrong with this Java call? Eric Sosman <esosman@comcast-dot-net.invalid> - 2020-05-30 15:40 -0400
Re: What's wrong with this Java call? vjp2.at@at.BioStrategist.dot.dot.com - 2020-05-31 07:07 +0000
Re: What's wrong with this Java Jython call? vjp2.at@at.BioStrategist.dot.dot.com - 2020-06-05 15:09 +0000
Re: What's wrong with this Java Jython call? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2020-06-05 23:03 +0200
Re: What's wrong with this Java Jython call? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2020-06-05 23:07 +0200
Re: What's wrong with this Java Jython call? vjp2.at@at.BioStrategist.dot.dot.com - 2020-06-06 13:44 +0000
Re: What's wrong with this Java Jython call? vjp2.at@at.BioStrategist.dot.dot.com - 2020-06-06 18:47 +0000
Re: What's wrong with this Java Jython call? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2020-06-06 21:35 +0200
Re: What's wrong with this Java Jython call? vjp2.at@at.BioStrategist.dot.dot.com - 2020-06-13 11:15 +0000
Re: What's wrong with this Java Jython call? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2020-06-14 16:23 +0200
Re: What's wrong with this Java Jython call? vjp2.at@at.BioStrategist.dot.dot.com - 2020-06-15 10:10 +0000
csiph-web