usejava
Tests whether a Java feature is available.
Category: Environment and Settings > Platform and License
Syntax
tf = usejava(feature)
Returns true if the feature is present, for example 'jvm', 'awt', 'swing' or 'desktop'.
Description
usejava is the simple yes/no form of javachk. Scripts check usejava('desktop') to know whether the interactive desktop is running, and usejava('jvm') before calling Java classes.
MatLivre has no Java virtual machine, so every feature reports false.
Input arguments
feature- Name of the Java feature.
Output arguments
tf- Logical scalar.
Example
Features that need Java
usejava('jvm')
usejava('desktop')
Output
ans = logical
0
ans = logical
0