/* * JythonLauncher.java * * Created on November 1, 2007, 3:04 PM * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package org.autoplot; import org.autoplot.ApplicationModel; import org.autoplot.APSplash; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; /** * Support for invoking Jython script. This is Just ".../AutoplotUI --script ..." stripped down, and was rewritten after Bob and Jeremy * would see inconsistent behavior between:
 *  /usr/local/jre1.6.0_25/bin/java -cp ./autoplot.jar -Djava.awt.headless=true org.autoplot.JythonMain `pwd`/testVars.jy   (and)
 *  /usr/local/jre1.6.0_25/bin/java -cp ./autoplot.jar -Djava.awt.headless=true org.autoplot.AutoplotUI --script=`pwd`/testVars.jy
 * 
* @author jbf */ public class JythonMain { public JythonMain() { } /** * org.virbo.autoplot.JythonMain * * @param args zero or one command line argument. * @throws Exception */ public static void main(String[] args) throws Exception { System.err.println("org.autoplot.JythonMain "+APSplash.getVersion()); String argv[]= new String[ Math.max(0,args.length-1) ]; for ( int i=1; i