>> [gateway,user,cred] = loadOmeroGateway(userName, password, host)
--------------------------
OMERO.matlab Toolbox
5.4.6-ice36-b87
--------------------------
gateway =
omero.gateway.Gateway@efb952c
user =
omero.gateway.model.ExperimenterData (id=1884)
cred =
omero.gateway.LoginCredentials@2ca142fc
>> which connect -all
C:\Program Files\MATLAB\R2017a\toolbox\matlab\iofun\@ftp\private\connect.m % Private to @ftp
connect is a Java method % omero.gateway.Gateway method
C:\Program Files\MATLAB\R2017a\toolbox\shared\controllib\engine\@DynamicSystem\connect.m % DynamicSystem method
C:\Program Files\MATLAB\R2017a\toolbox\control\ctrlobsolete\connect.m
>> which connect
C:\Program Files\MATLAB\R2017a\toolbox\control\ctrlobsolete\connect.m
>> ver
----------------------------------------------------------------------------------------------------
MATLAB Version: 9.2.0.959691 (R2017a) Update 3
MATLAB License Number: 972477
Operating System: Microsoft Windows 10 Pro Version 10.0 (Build 17134)
Java Version: Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
----------------------------------------------------------------------------------------------------
MATLAB Version 9.2 (R2017a)
Control System Toolbox Version 10.2 (R2017a)
Curve Fitting Toolbox Version 3.5.5 (R2017a)
Image Processing Toolbox Version 10.0 (R2017a)
NeuroSpec Version 2.0
Parallel Computing Toolbox Version 6.10 (R2017a)
Signal Processing Toolbox Version 7.4 (R2017a)
Statistics and Machine Learning Toolbox Version 11.1 (R2017a)
Wavelet Toolbox Version 4.18 (R2017a)
This implies that the method 'connect' of 'gateway' is not visible to MATLAB. Indeed, if I try to get the list of Java methods of the 'gateway' object, it issues a Java error, complaining that `loci/formats/meta/MetadataStore` is not found.
A Java exception occurred getting the method description for the omero.gateway.Gateway class:
Java exception occurred:
java.lang.NoClassDefFoundError: loci/formats/meta/MetadataStore
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at com.mathworks.jmi.CustomURLClassLoader.findClass(ClassLoaderManager.java:760)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetPublicMethods(Unknown Source)
at java.lang.Class.getMethods(Unknown Source)
at com.mathworks.jmi.OpaqueJavaInterface.getMethodDescriptions(OpaqueJavaInterface.java:278)
Caused by: java.lang.ClassNotFoundException: loci.formats.meta.MetadataStore
at java.net.URLClassLoader.findClass(Unknown Source)
at com.mathworks.jmi.CustomURLClassLoader.findClass(ClassLoaderManager.java:760)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 17 more
import loci.formats.IFormatReader;
import loci.formats.ImageReader;
import loci.formats.meta.IMinMaxStore;
import loci.formats.meta.MetadataStore;
Return to Developer Discussion
Users browsing this forum: Bing [Bot] and 1 guest