How to I enable java through matlab command line?

3 visualizaciones (últimos 30 días)
Ron Aditya
Ron Aditya el 25 de Jun. de 2018
Comentada: Ron Aditya el 25 de Jun. de 2018
How to I enable java through matlab command line?
  5 comentarios
OCDER
OCDER el 25 de Jun. de 2018
Ah, so what do you think "-nojvm" option means? See edited answer below.
Ron Aditya
Ron Aditya el 25 de Jun. de 2018
I used matlab -nodesktop and it worked. Thanks!

Iniciar sesión para comentar.

Respuesta aceptada

OCDER
OCDER el 25 de Jun. de 2018
Editada: OCDER el 25 de Jun. de 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([])

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Productos


Versión

R2007a

Community Treasure Hunt

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

Start Hunting!

Translated by