Is it possibile to use the MATLAB compiler to generate a stand-alone application for a visualization of values that are received from a database query?

Is there a possibility to use the MATLAB compiler to generate a stand-alone application for a visualization of values that are received from a database query?
I always get an error within the database query: invalid connection. Is it possible that the database drivers cannot be found?

Answers (2)

Hi Thomas,
you should be able to use the database toolbox with the compiler. Note though, that it might be necessary to check some things: do you use a jdbc driver that has been added to the classpath? Take a look by "edit classpath.txt". If yes, you need to copy the classpath.txt file to the folder, where your executable is. If this is not the problem, perhaps show us the call to database().
Titus

2 Comments

Hi Titus,
Thanks a lot for the hint, changing the classpath.txt of the MCR installing folder of the guest PC is sufficient. Or adding the corresponding file classpath.txt to the same folder as the .exe-file...
Best regards und Vielen Dank
Thomas
Hi Thomas,
both methods are fine: the first is a PC wide setup, whereas the second is an application specific (which needs no change of the installation, can be an advantage in restrictive environment).
Gern geschehen ;-)
Titus

This question is closed.

Asked:

on 17 Oct 2011

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!