Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

interacting java and matlab

 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to do some Maths related things in Matlab, and for the rest in Java, hoe can I connect them together? Somebody please help. I think, by socket programming we can connect them? But are there any other methods to do this?


And second question, what is the native methods in java, to connect other languages like c?

Thanks...
 
Rob Spoor
Sheriff
Pie
Posts: 20606
60
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abimaran Kugathasan wrote:And second question, what is the native methods in java, to connect other languages like c?

Something like that. Native methods are programmed in any other language; mostly C or C++ but others are also possible. This is called JNI.
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, What about the Matlab question? How can we use native method to connect other language? Please give me some examples.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15436
41
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try Googling for "matlab java"
 
Henry Wong
author
Marshal
Pie
Posts: 21385
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abimaran Kugathasan wrote: How can we use native method to connect other language? Please give me some examples.


The JNI tutorial is a good place to start here...

http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html

Henry
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jesper Young wrote:Try Googling for "matlab java"


Yea, I got it. A Java API to control and interact with MATLAB. This is a jar file, I'll try it with my project. Thanks.

Thanks a lot Henry.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic