Re: [micro-manager-general] Matlab Configuration - CMMCore Object
Status: Beta
Brought to you by:
nicost
|
From: Kiana Go <gok...@be...> - 2018-06-26 18:50:05
|
In addition, I am also receiving the error "Undefined function or variable
'CMMCore'."
>> CMMCore core = new CMMCore();
Undefined function or variable 'CMMCore'.
>> import mmcorej.*;
>> mmc = CMMCore;
>> mmc.loadSystemConfiguration
('/Applications/Micro-Manager1.4/MMConfig_demo.cfg');
>> CMMCore core = new CMMCore();
No constructor 'mmcorej.CMMCore' with matching signature found.
On Tue, Jun 26, 2018 at 11:18 AM, Kiana Go <gok...@be...> wrote:
> Hello,
>
> My name is Kiana Go and I am working on configuring matlab with
> micro-manager. However, I ran into the problem when creating the CMMCore
> object (Programming Guide
> <https://micro-manager.org/wiki/Micro-Manager_Programming_Guide#Getting_started>
> ):
>
> >> CMMCore core = new CMMCore();
> * No constructor 'mmcorej.CMMCore' with matching*
> * signature found.*
>
> However, I successfully created a Java Object of class MMCcore (Matlab
> Configuration <https://micro-manager.org/wiki/Matlab_Configuration> -
> Step 6). Please reference the problem image below.
>
> I've looked up my problem but have yet to solve it. Based on some
> research, I suspect it is because I did not set up the Java environment as
> stated in the Matlab Configuration
> <https://micro-manager.org/wiki/Matlab_Configuration>. It states:
>
> * MMCore can be used in Matlab through its Java interface. After
> setting up the Java *
> * environment as described above, MMCoreJ.jar must be added to Matlab
> Java class path *
> * and **the directory for the MMCore dynamic libraries (including
> MMCoreJ_wrap) must be added *
> * to the **system path.*
>
> I believe I correctly added the MMCoreJ.jar to Matlab Java class path
> and the directory for the MMCore dynamic libraries as I followed the Matlab
> Configuration recipe for versions 1.4.6 and newer. However, I do not think
> I set up the Java environment. It says: "Any Java program (including
> Matlab) that wants to use the Micro-Manager API needs to put MMCoreJ.jar in
> its ClassPath." How do I do that as MMCoreJ.jar is in the Micro-Manager
> folder, which is a separate folder not in Matlab. Both Micro-Manager and
> Matlab is under Applications.
>
> Thanks so much in advance! I am lost and really appreciate any help.
> Thanks so much again!
>
> Much Appreciated,
> Kiana Go
>
>
> --
> Class of 2021
>
--
Class of 2021
|