To provide context in the javachk
error
message, add the optional text parameter to the javachk
function.
Create a script, myFile.m
, with the following statements. The script checks if Java is
available before calling Java to create a frame.
Start MATLAB from
the Linux® system prompt.
Run the script.
If Java is not available, then MATLAB displays this error, identifying the source as the
myFile
script.
Error using myFile (line 1)
myFile is not supported because:
Java is not currently available.