Skip to main content

All Questions

Tagged with
1 vote
1 answer
585 views

Executing a MATLAB script from Java gives EXCEPTION_ACCESS_VIOLATION error

I am trying to call a MATLAB function from Java, using Eclipse. I am using MATLAB R2018b (the trial version), JDK 11.0.1, and Eclipse 2018-09. Both MATLAB and Eclipse are 64 bit versions. I am on a ...
rdv's user avatar
  • 732
0 votes
0 answers
112 views

How to import .m (Matlab) file in java

I'm trying to use a function from a .m file in a .java file, but it isn't working. This is the error I'm getting. "Blocking in Event Dispatch Thread not allowed at com.mathworks.mvm.exec.FutureResult....
Ayush Kumar's user avatar
3 votes
2 answers
2k views

Error with "nativemvm library" Engine API Java with Matlab

I am trying to call Matlab in Java, I followed the steps given by the documentation : https://fr.mathworks.com/help/matlab/matlab_external/setup-environment.html#bvcubp5 And I tried to compile this ...
thib's user avatar
  • 31
0 votes
1 answer
206 views

Is there a way to use the output from Matlab within the Eclipse workspace?

As a starting point, i'll note that my java skills are extremely limited. So far I have successfully linked projects, libraries and sources. I believe the answer to my question lies in the use of '...
higgip's user avatar
  • 1
1 vote
0 answers
440 views

System cannot Load Native Library mvm.dll

I am working on Calling matlab function in java code by using Java Matlab Engine API in Eclipse. I have written very simple program but its giving me runtime error. I have written this code: import ...
saman's user avatar
  • 11
0 votes
1 answer
106 views

Java Web Service client error

I was creating a Java web service server, using eclipse IDE. that server is the following. Note: I am working in UBUNTU package com.tesis.service; import java.util.concurrent.ExecutionException; ...
Camilo Andres Gamarra's user avatar
1 vote
1 answer
1k views

Problems with MATLAB Engine API for Java

Im am trying to compile this piece of code: import com.mathworks.engine.*; public class javaEvalFunc { public static void main(String[] args) throws Exception { MatlabEngine eng = ...
Nicole Ramírez's user avatar
0 votes
0 answers
73 views

How to / is it possible to call a matlab finction from a java program?

To begin with i am using Eclipse as my java IDE. Im doing a robotics project where my robot (the lego mindstorms ev3) travels a room using SLAM (programmed in java) and does some image recognition ...
Alexander Davies's user avatar
0 votes
0 answers
77 views

How to run program in MATLAB in Eclipse?

I have a Java application running in Eclipse and another application in MATLAB. Now I want to launch MATLAB application in my Java application. Is it possible to do that?
Nahla K's user avatar
0 votes
0 answers
36 views

Eclipse "OutOfMemoryError" After Reading Large Code File Repository [duplicate]

I have a Java implemented program that reads a MATLAB code repository, calculates metrics for each of the files and stores the result in a HashMap where the key is the file in question and the value ...
user3647720's user avatar
0 votes
0 answers
313 views

matlabcontrol fails to start MATLAB when executed from jar-file

I am using matlabcontrol to start matlab-sessions and everything works fine if i start it from eclipse. A new Matlab-session is opened or, if one is already open&connected, the old one is ...
R. Engel's user avatar
2 votes
1 answer
198 views

Use of varargs into java method called by Matlab

I created a jar file by eclipse and in this file there is a class with this method public Response getJsonFromRest(String urlstr, String... queryParams) my target it is to return an object with a ...
luca's user avatar
  • 3,328
1 vote
1 answer
225 views

How to hide command window while calling Matlab with matlabcontrol package in Java?

I'm using the matlabcontrol package in Java to connect to Matlab r2015a and start a selected script. This is all working great, but every time I run the script, Matlab opens a command window with the ...
Camelaria's user avatar
  • 283
2 votes
0 answers
989 views

Matlab Compiler Runtime: Cannot find javabuilder.jar

I have been trying to set up a web service in Java using Maven. The web server is Wildfly 9.0.0 (JBoss) and previously Wildfly 8.2.0. The goal of this web service is for the client to send a list of ...
NikChris's user avatar
1 vote
0 answers
263 views

how to run jar files that created by matlab in eclipse

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 ...
user3718274's user avatar

15 30 50 per page