Is This Content Helpful?
We're glad to know this article was helpful.
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.
The following is the programming model to build 10.3.1 ArcObjects SDK for Java Linux Visual JavaBeans applications with Oracle 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.