gitlab #50
Change-Id: Ib0bd5c507b2e3485264121f7fdf9a578bfef2c0a
*/
public class vtkJavaDep {
static String[] libs = new String[] {
- "awt",
- "jawt",
-
"vtksys",
"vtkCommonCore",
"vtkWrappingJava",
"vtkIOImportJava",
};
-
-
- static {
- for (String lib : libs)
- System.loadLibrary(lib);
- }
-
- static void load() {
-
- }
+
+
+ static {
+ try {
+ Class.forName("java.awt.Toolkit");
+ } catch (ClassNotFoundException e) {
+ throw new IllegalStateException(e);
+ }
+
+ for (String lib : libs)
+ System.loadLibrary(lib);
+ }
+
+ static void load() {
+
+ }
}