Effacer les filtres
Effacer les filtres

How to modify the static Java path

54 vues (au cours des 30 derniers jours)
Cris Luengo
Cris Luengo le 9 Juil 2024 à 23:03
Commenté : Cris Luengo le 10 Juil 2024 à 7:13
The instructions here describe how to add JAR files to the bottom of the static Java path. Dynamic entries also are used last. This means we cannot replace any of the JAR files that come with MATLAB.
I have an Apple Silicon machine, MATLAB R2023b, and Amazon Coretto JVM installed according to the MATLAB installation instructions.
This version of MATLAB comes with a jna.jar in $MATLABROOT/java/jarext/svnkit/jna.jar that doesn't work in Apple Silicon (it has a shared object built in that works on i386, x86_64 and ppc7400 (which makes me think this is a really old version!).
I've downloaded a newer version of this JAR, but I cannot get MATLAB to use the newer version. Is my only hope to overwrite the file that comes with MATLAB?
  2 commentaires
Mohammad Sami
Mohammad Sami le 10 Juil 2024 à 6:01
create a backup of the file and then overwrite it. you will have to do it at your own risk as there maybe other functionality that depends on this.
Cris Luengo
Cris Luengo le 10 Juil 2024 à 7:13
@Mohammad Sami I was hoping to find a solution that doesn't involve modifying the MATLAB installation. I'm not worried about breaking anything -- this JAR file doesn't work, so overwriting it cannot break anything that isn't already broken. But some people do not have permission to modify their MATLAB installation.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by