How to fix classpath.txt in the startup directory no longer supported warning?

10 Ansichten (letzte 30 Tage)
I've created Spring Boot Java project and i use Matlab (9.4.0.949201 (R2018a) Update 6, Java 1.8.0_144-b01). After find true version for the project (before this i've got "version of MATLAB Java Package that is not compatible with the version of MCR" error, to solve this problem i've changed my version of Matlab. 2023a -> 2018a). After changing version of Matlab, some errors were fixed. However, i got this error right now.
Warning: classpath.txt in the startup directory no longer supported. See <a href="matlab: helpview([docroot '/techdoc/matlab_external/matlab_external.map'],'java_static_path')">The Static Path</a>.
This is pom.xml:
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.8.RELEASE</version>
</parent>
<groupId>com.example</groupId>
<artifactId>demo1</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>demo1</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>11</java.version>
<start-class>peridynamics.demoApp</start-class>
<cholSolver.path>C:\Users\user\Desktop\PDTO\pdtopolys\cholSolver.jar</cholSolver.path>
<javabuilder.path>C:\Program Files\MATLAB\R2018a\toolbox\javabuilder\jar\javabuilder.jar</javabuilder.path>
</properties>
<dependencies>
<dependency>
<groupId>com.googlecode.matrix-toolkits-java</groupId>
<artifactId>mtj</artifactId>
<version>1.0.2</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>2.7.0</version>
<scope>test</scope>
</dependency>
<!-- Replace hard-coded paths with variables -->
<dependency>
<groupId>peridynamics</groupId>
<artifactId>cholSolver</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${cholSolver.path}</systemPath>
</dependency>
<dependency>
<groupId>com.mathworks</groupId>
<artifactId>javabuilder</artifactId>
<version>R2018a</version>
<scope>system</scope>
<systemPath>${javabuilder.path}</systemPath>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>peridynamics.demoApp</mainClass>
<layout>JAR</layout>
</configuration>
</plugin>
</plugins>
</build>
</project>
How can i solve this problem?

Akzeptierte Antwort

檮杌
檮杌 am 27 Sep. 2023
You can refer to the webpage below for reasons and a workaround for the warning message.
  3 Kommentare
檮杌
檮杌 am 27 Sep. 2023
Would you try to follow the guidance below to restore your MATLAB settings to default?
-----------------------------------------------------
It seems that the problem you are experiencing is an abnormal operation of the product. Please apply the following instructions to initialize path and preference settings for the normal operation of MATLAB. If the following methods do not solve the problem, the only solution to the abnormal operation of the product is re-installation.
​Right-click on the MATLAB execution icon to run MATLAB in administrator mode, and then execute the following commands in the MATLAB command window.
>> restoredefaultpath
>> rehash toolboxreset
>> rehash toolboxcache
>> sl_refresh_customizations % Please run this line only when you use Simulink related products.
>> savepath
>> prefdir
If there is no problem executing each command (a warning message is ok),
Open the directory along the path that appears when the last command is executed. Then close MATLAB.
Go up to the parent folder of the open directory, rename R20XXx to R20XXx_old (Ex. R2020a -> R2020a_old). Then launch MATLAB.
-----------------------------------------------------
Rozerin
Rozerin am 27 Sep. 2023
I did what you advised me (i didn't use this sl_refresh_customizations) but I still have the same problem when i run -mvn clean install.
Warning: classpath.txt in the startup directory no longer supported. See <a href="matlab: helpview([docroot '/techdoc/matlab_external/matlab_external.map'],'java_static_path')">The Static Path</a>.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Produkte


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by