Why do I get an error "The system cannot find the file specified" during the build process of my Simulink model for the VEX Microcontroller?

I have been able to install Simulink and the VEX Support Package on my Mac successfully. When I build a Simulink model for my VEX target, I see the following error at the bottom of the build verbose:
> "### Invoking postbuild tool "Download" ..."
> process_begin: CreateProcess(NULL, java -jar C:/MATLAB/SupportPackages/R2014a/PROS/firmware/uniflash.jar vex ../defaultprogram.bin, ...) failed.
> make (e=2): The system cannot find the file specified.
> gmake: *** [download] Error 2
Why is the "Download" step failing? How do I fix this issue?

回答(1 个)

The error message suggests that your system is not able to recognize the "java -jar" command that is being run as part of the download step. This error typically occurs when you do not have a Java Development Kit (JDK) installed on your machine (Win or Mac). So, to resolve this issue, search on the internet for a free version of JDK and install it. Then, repeat the build process for your Simulink model and check if the build and download completes successfully.

类别

在 帮助中心 和 File Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by