Bugs item #918489, was opened at 2004-03-17 19:36
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379133&aid=918489&group_id=23629

Category: Scripting
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Michael T Howard (michaelthoward)
Summary: -script qualifier does not work

Initial Comment:
Using beta version jmol10pre6, I can open Jmol and then choose 
the script option.  I then enter at the prompt the command:

$ script robettaScript

The script works fine.  In my case it is a very simple script which 
loads a pdb file, then selects a chain and changes the color.  Here 
is the script:

zap
load "robettaTest.pdb"
select :A
color blue

However, if I attempt to load this script on the command line as 
follows:

java -jar /Users/jcohn/Jmol10pre6/Jmol.jar -script robettaScript

I get the following error message:

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)



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379133&aid=918489&group_id=23629


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to