Skip to Main Content Skip to Search
Product Documentation

Importing Classes

To use a component generated by the MATLAB Builder JA product:

  1. Import MATLAB libraries with the Java import function, for example:

    import com.mathworks.toolbox.javabuilder.*;
    
  2. Import the component classes created by the builder, for example:

    import com.mathworks.componentname.classname;

      Tip   It is important to note the difference between the component and the package names. The component name is the last part of the full package name, and is what is used in the .JAR file (and the embedded CTF file within the JAR). For example, in mcc -W java:com.mathworks.demos.HelloDemo hello.m, the component name is demos and the package name is com.mathworks.demos.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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