[kepler-dev] Build Broken (by MatlabExpression.java?)

Christopher Brooks cxh at eecs.berkeley.edu
Sun Apr 23 20:53:42 PDT 2006


Hi Tristan,

The Ptolemy MatlabExpression actor uses the JNI to communicate with
Matlab.  I don't think a separate process is invoked.  

I have not looked at Matlab lately, though Ernesto Wandeler recently
told me he had been able to invoke Matlab via Java and not use
JNI.

JNI under Windows Cygwin is utterly broken.   JNI using Microsoft
VC++ works.


_Christopher

--------

    My bad with that. I always figured that that java compliance settings in 
    eclipse meant that the code would compile under 1.4 (or maybe it does 
    and i'm doing something wrong). I've modified the actor now and compiled 
    it using 1.4 to make sure it works, and will commit it again later on 
    today (when i'm 100% sure it wont break anything :)).
    
    I've looked into the java interfaces that come with matlab, and as far 
    as i can tell they're not much use to us.
    
     From what i've managed to figure out, they just allow people to write 
    java classes for use inside matlab's own jvm (i.e. the classes must be 
    called from inside matlab), and don't do anything when run from a 
    standard jvm.
    
    If anyone knows any different, please let me know. I'm not a big fan of 
    the whole spawning additional processes to preform these tasks, and even 
    less of having to parse text output to decipher the results. But for now 
    i don't know of any other way of doing this.
    
    --Tristan
    
    Christopher Brooks wrote:
    > BTW - The Ptolemy Matlab expression actor uses JNI to communicate
    > with Matlab.  I believe there is now a pure Java Matlab interface
    > which is much more robust than JNI.  I would support tossing the
    > Ptolemy Matlab expression actor for a non-JNI Matlab actor.
    > 
    > Nandita create a MatlabStartScript utility that looks like it starts
    > a remote Matlab process using Runtime.getRuntime().exec().  
    > I'm not so sure if this is the right thing, since it starts a 
    > separate process each time.  It might be better to have a 
    > more integrated actor?  However, I'm not sure what the plan is
    > for this actor, so there could easily be good uses for it.
    > 
    > 
    > _Christopher
    > 
    > --------
    > 
    >     MatlabExpression code is apparently keeping the nightly build from 
    >     compiling. Would however is working on this please fix ASAP!
    >     
    >     (And is this different that the Matlab actor in PTII ? (which we coul
   d 
    >     put in Kepler)
    >     
    >     Dan Higgins
    >     NCEAS
    >     _______________________________________________
    >     Kepler-dev mailing list
    >     Kepler-dev at ecoinformatics.org
    >     http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-
   dev
    > --------
    > _______________________________________________
    > Kepler-dev mailing list
    > Kepler-dev at ecoinformatics.org
    > http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev
    > 
    
    -- 
    Tristan King                            | Ph: (07) 4781 6911
    DART project team                       | Email: Tristan.King at jcu.edu.au
    James Cook University                   | Web: http://dart.edu.au
    Townsville QLD 4814                     | http://plone.jcu.edu.au/dart/
    Australia                               |
--------


More information about the Kepler-dev mailing list