Borrar filtros
Borrar filtros

How to open and read Data from a Java .jar-archive

2 visualizaciones (últimos 30 días)
Suppenhuhn
Suppenhuhn el 24 de Mzo. de 2011
Hi,
I´ve got a JavaShell, that I can open via Dos by "javaw.exe -jar [program.jar]". In the program I´m able to open a database. Now I would like to open the program from Matlab, import the database and copy some informations to Matlab.
a)Is this possible ? and b) How ?
I already read the Matlab Help "Java Classes Contained in a Jar File" but actually that didn´t help. Besides I couldn´t open the [program.jar] I have the additional problem, that the data that I need has first to be loaded (as described) - it isn´t already presented, when I´m opening the program.jar.
I even would appreciate an adivice where to find more about this theme.

Respuestas (1)

the cyclist
the cyclist el 7 de En. de 2012
Sorry for the absurdly delayed answer, but I was just searching for a similar answer myself, and found your question. One simple way to call Java from MATLAB is to use the system() command:
system('java -jar program.jar')

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by