Are you referring to the GWT
Java to JavaScript compiler? In general, you need the Java source for any such conversions. There are limitations, though, for what the GWT compiler will translate. A lot of times you need to rely on the Google classes instead of the standard set of java classes.