Import function no longer supported. Am I using the DDL libraries correctly?

6 visualizaciones (últimos 30 días)
I am creatting an app using app designer. This is part of my startup function. I also call it whenever I need to use the stages, in other buttons for some reason otherwise it crashes,
import 'zaber_motion_lib_with_all_dependencies.jar.*'
import zaber.motion.ascii.Connection;
import zaber.motion.Units;
When I launch it from matlab, pre packaged app version.I get this warning message.
""Warning: File: PlanoScatterV3a.mlapp Line: 111 Column: 24
Malformed import argument 'motion-library-jar-with-dependencies.jar.*' will not be supported in a future release. ""
Whats the solution to get around this? Keep in mind this will eventually be packaged into an app so I wont have access to the the user and where the place their "required files"
Thanks

Respuestas (1)

Walter Roberson
Walter Roberson el 5 de Ag. de 2025
The R2023b Release notes say,
Malformed and reserved import arguments issue warning
Behavior change
Previously, the import (R2023b) function accepted malformed arguments, such as #.b
or a.*.*, and MATLAB still executed the command even though nothing was imported.
It also allowed importing of reserved names, such as a.for or a.if that do not satisfy
MATLAB naming rules. Starting in R2023b, MATLAB issues a warning if you include invalid
imports. Such imports will not be supported in a future release.
It is not immediately clear to me what the problem is in importing zaber_motion_lib_with_all_dependencies.jar.* but I notice the error is instead about motion-library-jar-with-dependencies.jar.* . I speculate that the .jar.* is the problem -- the proper name probably does not include the '.jar' extension.

Categorías

Más información sobre Debugging and Analysis en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by