I try to run the code that published here (Return value from jar file created from Matlab) building a jar file in matlab and run it in eclipse. i did exactly as "amro" source code in the link but i have this error:
java.lang.NullPointerException
at Epidemic.TestEpidemic.getArray(TestEpidemic.java:29)
at Epidemic.TestEpidemic.main(TestEpidemic.java:37)
I noticed the error is when i try to do:
obj = new Epidemic();
By the way, i build the jar file in matlab using "deploytool" command.