Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #3387

Re: Jython from bathc file?

From Todd Vargo <tlvargo@sbcglobal.netz>
Newsgroups comp.lang.python, alt.msdos.batch.nt, comp.lang.java.help
Subject Re: Jython from bathc file?
Date 2015-05-09 06:17 -0400
Organization albasani.net
Message-ID <mikmrd$f3q$1@news.albasani.net> (permalink)
References <mijh9c$nv6$2@reader1.panix.com>

Cross-posted to 3 groups.

Show all headers | View raw


On 5/8/2015 7:36 PM, vjp2.at@at.BioStrategist.dot.dot.com wrote:
> How do I do this in a .bat file?
> Do I include the Jython or pipe it?
>
> % CLASSPATH=$CLASSPATH:$RDBASE/Code/JavaWrappers/gmwrapper/org.RDKit.jar; jython
>   -Djava.library.path=$RDBASE/Code/JavaWrappers/gmwrapper
> Jython 2.2.1 on java1.6.0_20
> Type "copyright", "credits" or "license" for more information.
>>>> from org.RDKit import *
>>>> from java import lang
>>>> lang.System.loadLibrary('GraphMolWrap')
>>>> m = RWMol.MolFromSmiles('c1ccccc1')
>>>> m.getNumAtoms()
>

This does not do that but for those who don't know Jython it can help.

@echo off
set "x=thequickbrownfoxjumpsoverthelazydog"
set "x1=%x:~11,1%%x:~1,1%%x:~29,1%%x:~0,1%"
set "x2= %x:~32,2%%x:~2,1%%x:~20,1%"
set "x3= %x:~5,1%%x:~0,1% %x:~32,2%"
echo %x1%%x2%%x3%?
pause>nul

-- 
Todd Vargo
(Post questions to group only. Remove "z" to email personal messages)

Back to comp.lang.java.help | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Jython from bathc file? vjp2.at@at.BioStrategist.dot.dot.com - 2015-05-08 23:36 +0000
  Re: Jython from bathc file? Todd Vargo <tlvargo@sbcglobal.netz> - 2015-05-09 06:17 -0400
  Re: Jython from bathc file? vjp2.at@at.BioStrategist.dot.dot.com - 2015-05-09 21:04 +0000

csiph-web