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 Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2007a

Community Treasure Hunt

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

Start Hunting!

Translated by