How to call a Java function in MATLAB when I have no admin access to classpath?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have written a program that includes a Java function. When I tested on my computer it works completely fine since I have path configuration set already.
However, when I run it on a computer in my college, it does not work because I cannot configure the classpath.txt (I have no admin access and the MATLAB is on the server).
What should I do to be able to run this program?
(Environment info: The computer in the college has Java 1.8 installed but the MATLABr2017a has Java 1.7, I have no admin access)
Many thanks.
댓글 수: 0
답변 (1개)
Sharath Chandran
2017년 8월 4일
Hi Thammarith,
I understand that you are unable to call the desired Java function in MATLAB which is installed on a non-administrator machine. I would suggest you to try the ' javaaddpath ' command to add required entries (Java package/class) to dynamic Java class path. You could then try calling this function from MATLAB.
I hope this was helpful.
Feel free to comment below in case you are still facing any issue.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File 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!