# \[AMPL 24737\] Matlab setup

**URL:** <https://discuss.ampl.com/t/ampl-24737-matlab-setup/684>\
**Category:** Google Group Mirror\
**Created:** [August 15, 2023, 2:16am UTC](https://discuss.ampl.com/t/ampl-24737-matlab-setup/684 "2023-08-15T02:16:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luola\_gmail.com](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@luola\_gmail.com](https://discuss.ampl.com/u/luola_gmail.com)\
**Post date:** [August 15, 2023, 2:16am UTC](https://discuss.ampl.com/t/ampl-24737-matlab-setup/684/1 "2023-08-15T02:16:16Z")

</div>

I ran the sample code “firstExample.m” after i ran the “setupOnce.m” file on Matlab and got the following error message:

"Error using AMPL  
Java exception occurred:  
java.lang.RuntimeException: AMPL could not be started: The  
system cannot find the file specified.

at com.ampl.ampljavaJNI.new\_AMPLBase\_\_SWIG\_0(Native  
Method)

at com.ampl.AMPLBase.(AMPLBase.java:40)

at com.ampl.AMPL.(AMPL.java:129)

Error in firstExample (line 3)  
ampl = AMPL;"

Any advice? Is this because of the path issues?
