Skip to Main Content Skip to Search
Product Documentation

javachk - Generate error message based on Java feature support

Syntax

javachk(feature)
javachk(feature, component)

Description

javachk(feature) returns a generic error message if the specified Java feature is not available in the current MATLAB session. If it is available, javachk returns an error structure with empty message and identifier fields.

The following table shows the valid feature arguments.

Feature

Description

'awt'

Java GUI components in the Abstract Window Toolkit components are available.

'desktop'

The MATLAB interactive desktop is running.

'jvm'

The Java Virtual Machine software (JVM™) is running.

'swing'

Swing components (Java lightweight GUI components in the Java Foundation Classes) are available.

javachk(feature, component) works the same as the above syntax, except that the specified component is also named in the error message.

See Also

usejava

  


» Learn more
» Download free kit
» Get trial software

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS