How to I enable java through matlab command line?

조회 수: 3 (최근 30일)
Ron Aditya
Ron Aditya 2018년 6월 25일
댓글: Ron Aditya 2018년 6월 25일
How to I enable java through matlab command line?
  댓글 수: 5
OCDER
OCDER 2018년 6월 25일
Ah, so what do you think "-nojvm" option means? See edited answer below.
Ron Aditya
Ron Aditya 2018년 6월 25일
I used matlab -nodesktop and it worked. Thanks!

댓글을 달려면 로그인하십시오.

채택된 답변

OCDER
OCDER 2018년 6월 25일
편집: OCDER 2018년 6월 25일
NEW ANSWER
Start matlab without "-nojvm". "nojvm" means no java virtual machine.
OLD ANSWER
Import the java libraries you want to use. Here's an example:
import javax.swing.JFileChooser
A = JFileChooser;
A.showOpenDialog([])

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2007a

Community Treasure Hunt

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

Start Hunting!

Translated by