package com.vaadin.launcher;\r
\r
-import com.google.gwt.dev.GWTCompiler;\r
+import java.lang.reflect.Method;\r
\r
/**\r
* A wrapper for the GWT 1.6 compiler that runs the compiler in a new thread.\r
\r
Runnable runCompiler = new Runnable() {\r
public void run() {\r
- GWTCompiler.main(args);\r
+ try {\r
+ // GWTCompiler.main(args);\r
+ Class<?> compilerClass = Class\r
+ .forName("com.google.gwt.dev.GWTCompiler");\r
+ Method method = compilerClass.getDeclaredMethod("main",\r
+ String[].class);\r
+ method.invoke(null, new Object[] { args });\r
+ } catch (Throwable thr) {\r
+ thr.printStackTrace();\r
+ }\r
}\r
};\r
Thread runThread = new Thread(runCompiler);\r