Need help with configuring Java library path

41 views
Skip to first unread message

SANKAR MAHESH R

unread,
Jun 29, 2022, 11:57:38 PM6/29/22
to CellNetAnalyzer User Forum
Dear all,  I'm trying to use the ASTHERISK package for which I'll be using the CellNetAnalyzer toolbox with CPLEX. This will be carried out through the Java CPLEX interface.
I'm using CPLEX studio 12.10 and MatlabR2020b.
I'm not sure what change has to be made to the javalibrarypath_example.txt file.

It'll be helpful if anyone can guide me as to what changes has to be made to the javalibrarypath_example.txt file.

axel

unread,
Jul 5, 2022, 5:38:21 AM7/5/22
to CellNetAnalyzer User Forum
Hi,

if you want to use CPLEX with CNA you need to set the cplex_root variable in configure_cplex_paths.m to point to your CPLEX installation. When you then call startcna a message will appear on the console with the path that you need to add to javalibrarypath.txt. Then you have to restart Matlab from the directory that contains the javalibrarypath.txt file. If you still have problems after following these steps please let me know.

Best regards
Axel

SANKAR MAHESH R

unread,
Jul 14, 2022, 1:05:36 PM7/14/22
to CellNetAnalyzer User Forum
Hi.
I'm sharing here about what I did to resolve the issue (with the help of Axel)

I first moved to the CellNetAnalayzer directory using command line and then I typed startcna

Then MATLAB started. Thankfully no errors were observed during the process.

In addition, a structure array named cnan was created, as MATLAB started, with the following fields (attached as an image).
In this struct array, the field cnan.cplex_interface has two fields: Java and MATLAB. In my case both had value 1, which I think means that both are enabled and functioning normally.
This way, I was able to resolve the issue. 
cnan.png
cnan.cplex_interface.png
Reply all
Reply to author
Forward
0 new messages