Unable to resolve the name 'com.mathw​orks.messa​ging.utili​ties.Crede​ntials'.

9 次查看(过去 30 天)
Hi,
I am trying to use rabbitmq in matlab based on the library below.
To install the library I runned the "startup" file in the MATLAB folder and everything was fine.
But when using it in R2022a matlab according to the tutorial below:
https://mathworks-ref-arch.github.io/matlab-rabbitmq/MATLABInterface.html
especifically the code is:
"
c = rabbitmq.ConnectorProperties;
"
I encounter the following error:
******
Unable to resolve the name 'com.mathworks.messaging.utilities.Credentials'.
Error in rabbitmq.Credentials (line 27)
obj.Handle = com.mathworks.messaging.utilities.Credentials();
Error in rabbitmq.ConnectorProperties (line 58)
options.credentials = rabbitmq.Credentials
Error in Test3 (line 5)
c = rabbitmq.ConnectorProperties;
******
Can anyone please tell what the problem is and how can it get resolved?
Thanks

回答(1 个)

SANKALP DEV
SANKALP DEV 2023-9-12
Hi Mohammad,
I understand that you've encountered an error while trying to install 'RabbitMQ,' specifically the error message regarding the inability to resolve the name 'com.mathworks.messaging.utilities.Credentials' in MATLAB. This error seems to stem from an issue related to the 'rabbitmq.Credentials' class within MATLAB, especially when attempting to create an instance of this class.
It's worth noting that the 'RabbitMQ' MATLAB toolbox is designed to work smoothly with MATLAB versions R2019a and newer. Therefore, it's possible that the error you're facing is related to a path problem.
To resolve this issue, please ensure that the RabbitMQ Toolbox is correctly added to your MATLAB path. You can utilize the 'addpath' function to include the toolbox in your path if it hasn't been added automatically. Alternatively, you can access the 'Set Path' option in the toolstrip by navigating to MATLAB > HOME > Set Path and specify the correct path where the toolbox is installed.
If the above steps do not resolve the issue, you can opt to install the toolbox directly from MATLAB's 'Add-Ons' section and subsequently set the appropriate path as mentioned earlier (MATLAB > HOME > Add-Ons).
I hope these suggestions prove helpful in resolving your 'RabbitMQ' installation error.

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by