Calling java from matlab
I'm trying to build a database in Java (using MySQL), and the aim is
to be able to call the connection from Matlab. I've built a .jar
project with netbeans, and apparently it works when running in
netbeans, but when I try to call from Matlab I've found some problems.
I've updated my jvm in matlab, and be sure I add the project to the
More or less my code is as follows:
%Carga de las librerias que se utilizan, dispuestas en lib
cdir = dir('*.jar');
for m = 1:length(cdir)
%importar los paquetes necesarios
%Crear una instancia de conexion
When I try to connect with getManager I've got this error:
??? Java exception occurred:
javax.persistence.PersistenceException: No resource files named
found. Please make sure that the
persistence provider jar file is in your classpath.
at javax.persistence.Persistence.findAllProviders(Per sistence.java:
at javax.persistence.Persistence.createEntityManagerF actory
at es.urjc.cardiac.dataentities.Connection.getManager TopLinkFactory
I've used geronimo-jpa_3.0_spec_1.0.jar which provides with
I've tried hard to solve this problem but I wasn't be able to solve.
Has anyone a Idea? I'll appreciate.
|All times are GMT. The time now is 08:22 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.