The Ptolemy II 4.0 release notes list the following limitations for the Ptolemy JNI interface:
--start-- * The Interface to C actors using the Java Native Interface is not available via the Windows Installer (or Web Start). To use the JNI/Ptolemy II interface, you must download Ptolemy II as source files and compile. * The JNI user interface does not permit creation of new JNI actors. If you follow the instructions in $PTII/jni/JNIUtilities, then eventually you will get a NameDuplicationException. The resulting model will be missing <property name="output" class="jni.Argument" value="false,false,true,double"> </property> We are working with the original authors on a solution. In the short term, one workaround is to edit the xml file directly and add the appropriate property by hand. * JNI will not work with Hierarchical classes, subclasses, and inner classes --end-- So, you should download the source and rebuild. The JNI Interface is fairly fragile, see $PTII/jni/demo/jni/README.htm for an example of how to run it Also, I don't think the interface works very will gcc-3.3, you should use the Cygwin installer from http://ptolemy.eecs.berkeley.edu/ptolemyII/ptII4.0/cygwin.htm which includes gcc-3.2 I just verified that most of JNI demos in Ptolemy II 4.0.1 work for me under Windows when I use gcc-3.2. _Christopher -------- hai i m karthik venkatesh i m doing a project in ptolemy. I want to open the vergil application in ptolemy with JNI nterface enabled. $c:/ptolemy/ptII4.0.1/vergil-full.exe -jni I have tried the above command to invoke vergil with jni interface enabled. but the cygwin invokes an error stating "could not read configuration .xml from c:/ptolemy/ptII4.0.1/ptolemy/configs/jni/configuration.xml Please help me in fixing this. luv, karthik. -------- ---------------------------------------------------------------------------- Posted to the ptolemy-hackers mailing list. Please send administrative mail for this list to: [EMAIL PROTECTED]