Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Visad and jythonc

Folks,
   I realize this doesn't make much sense. But I want to do a bunch of
things (plots etc) in Visad (Jython), compile it into a class file and use
it in a Java program. The reason I wanted this was protyping graphs etc
appear to be simpler and are defintely faster to do in Jython.

To do this, I take an example .py file (Frank Gibbons' p2_01.py) and run
jythonc on it. This should give me the java equivalent of the file and I
should be able to compile it and make a class. However, when I compile the
.py file into Java, the following line (in the main function) seems to be
in error:

Py.runMain("p2_01$_PyInner", newargs, jpy$packages, jpy$properties, null,
new String[] {"p2_01"});


Py.runMain() requires arguments that are of types: (Class,
String[],String[],String[],String, String[])

But p2_01$_PyInner is a String...


Any help is appreciated.

Thanks,
Arvind








////////////////////////////////////////////////////////////////////////////
                        Arvind Lakshmikumar

Research Scientist                              Research Scholar
Intelligent Automation, Inc                     Robotics Institute, CMU
7519 Standish Place                             5000 Forbes Avenue
Rockville MD                                    Pittsburgh PA

email : kla@xxxxxxxxxx
Phone:  443-538-4555 (Cell)
        301-540-4396 (Home)



                                                Linux is like a Teepee
                                                No Windows, No Gates,
                                                Only APACHE Inside!
////////////////////////////////////////////////////////////////////////////


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690