How to I enable java through matlab command line?

3 vues (au cours des 30 derniers jours)
Ron Aditya
Ron Aditya le 25 Juin 2018
Commenté : Ron Aditya le 25 Juin 2018
How to I enable java through matlab command line?
  5 commentaires
OCDER
OCDER le 25 Juin 2018
Ah, so what do you think "-nojvm" option means? See edited answer below.
Ron Aditya
Ron Aditya le 25 Juin 2018
I used matlab -nodesktop and it worked. Thanks!

Connectez-vous pour commenter.

Réponse acceptée

OCDER
OCDER le 25 Juin 2018
Modifié(e) : OCDER le 25 Juin 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([])

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits


Version

R2007a

Community Treasure Hunt

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

Start Hunting!

Translated by