Is there a tool to convert javascript to java, so I can handle the project using GWT?
update
For those who don\'t know, GWT (Google Web Tool
At a theoretical level, you could use Rhino compiler to turn Javascript into Java class files, but the project seems mostly abandoned nowadays, and it would be crazy to use it with GWT to turn the result back to JavaScript.
For GWT, as you are eventually going back to Javascript anyway, you should use the JavaScript native interface to call existing Javascript code.