Why does MATLAB display the error 'libjvm.so: cannot open shared object file' when launching on my Linux system?

I am launching MATLAB on Linux, and it fails to start when launched normally. When I launch it with the -nodesktop or -nojvm flag, MATLAB launches, but the following error is displayed:
Warning: Unable to load Java Runtime Environment: libjvm.so: cannot open shared object file: No such file or directory

 Réponse acceptée

This error may occur if you are launching MATLAB from $MATLAB/bin/glnxa64/matlab (or, for 32 bit versions, $MATLAB/bin/glnx86/matlab). -Where $MATLAB represents the MATLAB installation directory.
Instead, try launching MATLAB from $MATLAB/bin/matlab.
If you are already launching from $MATLAB/bin/matlab and you see this error, you may have installed a 32 bit version of MATLAB on a 64 bit Linux operating system. If that is the case, try launching MATLAB with the -glnx86 flag:
 
$MATLAB/bin/matlab -glnxa86
NOTE: R2012a was the last release that was available in 32-bit on Linux. If you are troubleshooting R2012b or newer, the -glnx86 section of this article does not apply.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange

Produits

Version

R2012a

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by