Calling a java project from Mathematica

Could you give me a hint how can I call a Java project (written in eclipse) from Mathematica? I want to give the values ​​generated by my Mathematica program as input to a java project, and use the results (results) obtained when solving the problem with java, as input to my Mathematica code. I know that there is a J / Link package for calling Java from math. But I do not know how I can interact between them.

+2
source share
1 answer

Assuming your project is on the way to the class, you can easily navigate through Java ( see documents )

Needs["JLink`"]; InstallJava[]; awesomeClass = LoadJavaClass["my.java.class.OfAwesomeness"]; awesomeClass`crazyStaticMethod[]; awesomeInstance = JavaNew[awesomeClass,"Awesome Arg 1"]; awesomeInstance@superCoolMethod [1,2,3]; 
+3
source

All Articles