How to I enable java through matlab command line?

3 visualizzazioni (ultimi 30 giorni)
How to I enable java through matlab command line?
  5 Commenti
OCDER
OCDER il 25 Giu 2018
Ah, so what do you think "-nojvm" option means? See edited answer below.
Ron Aditya
Ron Aditya il 25 Giu 2018
I used matlab -nodesktop and it worked. Thanks!

Accedi per commentare.

Risposta accettata

OCDER
OCDER il 25 Giu 2018
Modificato: OCDER il 25 Giu 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([])

Più risposte (0)

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Prodotti


Release

R2007a

Community Treasure Hunt

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

Start Hunting!

Translated by