How to I enable java through matlab command line?

4 次查看(过去 30 天)
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.

请先登录,再进行评论。

采纳的回答

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