Does java classpath settings by MCR cross GLOBAL JAVA jobs?

3 vues (au cours des 30 derniers jours)
Lijie
Lijie le 29 Juin 2012
I have a Java code to call two jobs. The first job is to set the java class path by using javaaddpath to include the jdbc driver jar. The second job is to read data from database. The first job is executed successfully. But the second job can't pick up the class path that the first job sets. If I print out java classpath using javaclasspath('-all'), the jdbc driver jar is not there. Can the javaaddpath setting cross the global java jobs?
I'm using MATLAB AND MCR 2012a. Thanks!

Réponses (0)

Catégories

En savoir plus sur Call Java from MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by