How to I enable java through matlab command line?

3 views (last 30 days)
How to I enable java through matlab command line?
  5 Comments
OCDER
OCDER on 25 Jun 2018
Ah, so what do you think "-nojvm" option means? See edited answer below.
Ron Aditya
Ron Aditya on 25 Jun 2018
I used matlab -nodesktop and it worked. Thanks!

Sign in to comment.

Accepted Answer

OCDER
OCDER on 25 Jun 2018
Edited: OCDER on 25 Jun 2018
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([])

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2007a

Community Treasure Hunt

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

Start Hunting!