How can I Install POI library on Mac?
11 次查看(过去 30 天)
显示 更早的评论
I want to use XLSwrite on macbook. So I need to install POI library. How can I install it?
0 个评论
回答(3 个)
Walter Roberson
2018-2-2
Be careful with changing JAVA_HOME, as MATLAB pays attention to it. Also to make the change permanent you would have to put the command into your ~/.bash_profile
Where the tutorial talks about changing CLASSPATH you should look at https://www.mathworks.com/help/matlab/matlab_external/java-class-path.html
2 个评论
Butterflyfish
2018-8-24
Unfortunately tutorial is for Windows or Linux based systems. Any advice to do it on OSX?
Walter Roberson
2018-8-24
You can use /usr/libexec/java_home to find the value you should use for JAVA_HOME .
Butterflyfish
2018-8-24
In your Matlab code, add:
addpath('/dir/20130227_xlwrite/poi_library')
javaaddpath('poi_library/poi-3.8-20120326.jar');
javaaddpath('poi_library/poi-ooxml-3.8-20120326.jar');
javaaddpath('poi_library/poi-ooxml-schemas-3.8-20120326.jar');
javaaddpath('poi_library/xmlbeans-2.3.0.jar');
javaaddpath('poi_library/dom4j-1.6.1.jar');
javaaddpath('poi_library/stax-api-1.0.1.jar');
0 个评论
Samar Guharay
2018-9-1
Since I have a MAC, I am trying to use xlwrite instead of the standard xlswrite. I am getting the following comments. Any suggestions to solve this problem?
"The POI library is not loaded in Matlab. Check that POI jar files are in Matlab Java path!"
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!