Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB Builder JA   

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. The import statement should include the full package name: import com.mathworks.demos.HelloDemo;

  


Recommended Products

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

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