Why can't I deploy MATLAB GUIs/UICONTROL objects with MATLAB Builder JA 2.2.2 (R2011a) through 2.2.4 (R2012a)?

1 view (last 30 days)
I am experiencing issues with my Builder JA-generated Matlab GUI application when trying to launch it on a deployment machines using Java and the Matlab Compiler Runtime (MCR). The standalone executable, however, runs fine.
The MATLAB GUI can be either created using GUIDE or be a MATLAB file that generates a figure window with UICONTROL buttons.
For both cases, running the MATLAB code from Java using the MCR results in the buttons not being displayed. In addition, any callback functions associated with pressing these buttons are not triggered.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 13 May 2013
This is a bug in MATLAB Builder JA 2.2.2 (R2011a).
If you are using Java 6, you can employ the following workaround:
If using command line to run Java driver class, add a command line argument:
-Dsun.awt.disableMixing=true
to the javac command. For example:
java Driver.java -Dsun.awt.disableMixing=true
If using an IDE such as Eclipse to build the Java driver class and then run it, "-Dsun.awt.disableMixing=true" can be added to the Virtual Machine arguments list.
If you are using Java 7, there are no known workarounds.

More Answers (0)

Categories

Find more on MATLAB Compiler SDK in Help Center and File Exchange

Products


Release

R2011a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!