-nojvm option not working with Matlab 7.14 version

Hello Experts, I have Matlab version 7.14 and have created an excel package and am using it in my excel add-in. I am using the following code to initialize MWComUtil library in excel VBA. But the code fails initializing it. How can see the error? Is the method MWInitApplicationWithMCROptions available in this version of matlab?
Dim MCLUtil As Object Dim bModuleInitialized As Boolean
Private Sub InitModule() If Not bModuleInitialized Then On Error GoTo Handle_Error If MCLUtil Is Nothing Then Set MCLUtil = CreateObject("MWComUtil.MWUtil") End If Dim mcrOptions(1 To 3) as String mcrOptions(1) = "-nojvm" mcrOptions(2) = "-logfile" mcrOptions(3) = "logfile.txt" Call MCLUtil.MWInitApplicationWithMCROptions(Application, mcrOptions) bModuleInitialized = True Exit Sub Handle_Error: bModuleInitialized = False End If End Sub
Kindly advise. I am just trying to set to -nojvm option so that JVM ius not used.
Thank for your time and support Pat.

Risposte (0)

Categorie

Richiesto:

il 22 Dic 2014

Community Treasure Hunt

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

Start Hunting!

Translated by