Hi,
I've tried using the -script option to the Jmol application (Jmol.jar) in version 8, 9 and the 10pre6 beta. I cannot get it to work. I am using Java 1.4.2 on OS/X 10.3.2. I am executing Jmol.jar from the terminal:
java -jar Jmol.jar -script scriptname
The error message I get in 10pre6 is:
using Simple Model Adapter
(C) 2004 The Jmol Development Team
Jmol Version 10pre6 2004/03/07 10:44
Java Apple Computer, Inc. 1.4.2_03 Mac OS X
Executing script: robettaScript2.txt
uncaught exception: java.lang.NullPointerException: string is null
java.lang.NullPointerException: string is null
at
sun.java2d.SunGraphics2D.drawString(SunGraphics2D.java:2821)
at org.openscience.jmol.app.Splash.showStatus(Splash.java:
98)
at org.openscience.jmol.app.Jmol.main(Jmol.java:377)
In jmol-9 or jmol-8, I get a different error message:
Unexpected exception:
org.apache.commons.cli.UnrecognizedOptionException:
Unrecognized option: -s
Exception in thread "main" java.lang.NullPointerException
at org.openscience.jmol.app.Jmol.main(Jmol.java:439)
The same script works fine if I open Jmol.jar with no arguments and click on the script option then run the script by entering:
script scriptname
Any suggestions as to something I am doing wrong? I have submitted this as a bug since it does not work as advertised.
Judith Cohn
- Re: [Jmol-users] -script option to Jmol application Judith Cohn
- Re: [Jmol-users] -script option to Jmol application Miguel Howard

