How do I change the Java Virtual Machine installation the MATLAB installer uses?
조회 수: 2 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2013년 10월 18일
답변: MathWorks Support Team
2014년 6월 30일
I would like to tell the MATLAB installer to use a different installation of java than it comes packaged with. How would I do this? What is the default java it uses?
채택된 답변
MathWorks Support Team
2013년 10월 18일
To change the java version the installer uses, you need to add the following flag to the installer:
-javadir <directory>
(Where <directory> is, put the full path to your java installation folder.)
For example,
On Windows:
setup.exe -javadir "C:\Program Files\Java\jre6"
On Mac:
./install -javadir /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home -v
On Linux:
./install -javadir /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/
If the flag isn’t used, the default java shipped with the installer is used:
-javadir <installer>/java/jre/$ARCH/jre/
(where <installer> is the location of the installation files, and $ARCH is the architecture, win32 for example)
댓글 수: 0
추가 답변 (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!