I would like to know where the MATLAB Update installation log files are located to troubleshoot potential errors in my installation.
MATLAB: Where do I locate the MATLAB Update Installer log file
MATLAB
Related Solutions
MATLAB installations using Designated Computer licenses running in regular user accounts cannot update their licenses using the "Update License" feature in the MATLAB Help Menu. Since, with a Designated Computer license, the license file is stored in the MATLAB installation directory, administrative (Mac & Windows) or superuser (Linux) permissions are required to update the license file.
If "Update License" is run from within MATLAB, the updated license file will be generated in the License Center, however it will not be written to the disk of the machine running MATLAB. The license file on the machine running MATLAB can be downloaded from the MathWorks website and updated by someone who has administrative or superuser permissions on the machine in question.
The ability to load Java classes into MATLAB based on a Maven <dependency> definition is not available in MATLAB R2020b. You can however actually use Maven itself outside of MATLAB to have it download all dependencies for you or possibly even package the main Java package and all its dependencies into a single JAR-file which can then be added to MATLAB.
Download all dependencies
1. Download/Install Maven (and its dependencies like a supported JDK if needed), see:
https://maven.apache.org/
2. Create a pom.xml file for your "project", for example:
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>myProject</artifactId> <version>1.0.0</version> <dependencies> <dependency> <groupId>com.microsoft.azure</groupId> <artifactId>msal4j</artifactId> <version>1.8.1</version> </dependency> </dependencies></project>
Where you can further customize the properties of this project itself (although they are not really relevant in this workflow):\n
<groupId>com.example</groupId> <artifactId>myProject</artifactId> <version>1.0.0</version>
And you customize the <dependencies> to actually refer to the Java package which you want to load into MATLAB, in this example we refer to Microsoft's MSAL4J package:\n
<dependency> <groupId>com.microsoft.azure</groupId> <artifactId>msal4j</artifactId> <version>1.8.1</version> </dependency>
3. Now in the directory where you created your pom.xml run Maven's copy-dependencies command of the dependency plugin:\n
mvn dependency:copy-dependencies -DoutputDirectory=deps
Which will download all the dependencies into a directory named "deps". You can now add all the downloaded JAR-files to MATLAB's Java classpath.
Package the Java classes and all its dependencies into a single JAR
1. Download/Install Maven (and its dependencies like a supported JDK if needed), see:
https://maven.apache.org/
2. Create a pom.xml file for your "project", for example:
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>msal4j</artifactId> <version>1.8.1</version> <dependencies> <dependency> <groupId>com.microsoft.azure</groupId> <artifactId>msal4j</artifactId> <version>1.8.1</version> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <archive> <manifest> </manifest> </archive> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> </configuration> </plugin> </plugins> </build></project>
Where you can further customize the properties of this project itself (this will influence the name of the JAR-file which is produced):\n
<groupId>com.example</groupId> <artifactId>myProject</artifactId> <version>1.0.0</version>
And you customize the <dependencies> to actually refer to the Java package which you want to load into MATLAB, in this example we refer to Microsoft's MSAL4J package:\n
<dependency> <groupId>com.microsoft.azure</groupId> <artifactId>msal4j</artifactId> <version>1.8.1</version> </dependency>
3. Now in the directory where you created your pom.xml run:\n
mvn clean assembly:single
Which will download all the dependencies, clean the project and then assemble all relevant classes into a single JAR-file. You can then add this JAR-file to your MATLAB Java classpath.
Related Question
- Do I see “Error: This is a R2018b installation . You can only install newer updates.” in the log file when installing R2018b update 4
- Do I see a “java.lang.NullPointerException” in the installation log when trying to install a support package
- Do I receive License Manager Error -21
- Is there a difference between imported and exported ARXML file with Internal-Constrs
- Am I not able to start license manager at boot on OS X 10.10 Yosemite
- Does the .NET option disappear from the Project Settings when I use DEPLOYTOOL in MATLAB 7.3 (R2006b)
Best Answer