HOW TO
With the deprecation of the Java Motif Tookit (or 'MToolkit') environment by Oracle at the release of Java 7, applications using Visual JavaBeans in the ArcObjects 10.3.1 SDK for Java cannot be supported on Linux.
This article provides a workaround that allows developers to point to the Java 'Xtoolkit' environment instead, and thereby successfully build and run Visual JavaBeans-based applications using Java 7 SDK.
Code: import java.util.Properties;
Code: EngineInitializer.initializeVisualBeans(); Properties prop = System.getProperties(); prop.setProperty("awt.toolkit", "sun.awt.X11.XToolkit"); System.loadLibrary("jawt");
Note: To use the Visual JavaBeans samples provided with the ArcObjects 10.3.1 SDK for Java using the Oracle Java 7 SDK, edit the source files as outlined above, recompile and run.
Get help from ArcGIS experts
Download the Esri Support App