Visad and jythonc

  • To: visad-list@xxxxxxxxxxxxx
  • Subject: Visad and jythonc
  • From: Arvind Lakshmikumar <kla@xxxxxxxxxx>
  • Date: Sun, 18 May 2003 01:39:43 -0400 (EDT)
  • Mmdf-warning: Parse error in original version of preceding line at ux12.sp.cs.cmu.edu
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!
////////////////////////////////////////////////////////////////////////////


  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: