How to convert from java to js

3,317 views
Skip to first unread message

Amir Abudubai

unread,
Jan 2, 2014, 2:46:30 PM1/2/14
to google-we...@googlegroups.com
What I want to know is, can I make a program in java and convert it to js, or is there a limited amount of things that can be converted, and most importantly, how do I do it.

As you probably guessed, I am new to GWT and I am not really sure how it works.




P.S. I already got it installed in eclipse. I know C++, I hate js, and I am learning java.

Dennis Haupt

unread,
Jan 2, 2014, 3:39:48 PM1/2/14
to google-we...@googlegroups.com
as long as you have the java source files and feed them to the gwt compiler, there are basically no limitations - except for some features that do not exist in javascript at all (synchronisation, threads, reflection)
also, not all jdk classes are available for gwt compilation. just go through some tutorials to get your first generated js file


2014/1/2 Amir Abudubai <amirab...@gmail.com>
What I want to know is, can I make a program in java and convert it to js, or is there a limited amount of things that can be converted, and most importantly, how do I do it.

As you probably guessed, I am new to GWT and I am not really sure how it works.




P.S. I already got it installed in eclipse. I know C++, I hate js, and I am learning java.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Thomas Broyer

unread,
Jan 2, 2014, 3:59:30 PM1/2/14
to google-we...@googlegroups.com


On Thursday, January 2, 2014 8:46:30 PM UTC+1, Amir Abudubai wrote:
What I want to know is, can I make a program in java and convert it to js, or is there a limited amount of things that can be converted,

 
and most importantly, how do I do it.

Follow the tutorials and/or the dev guide: http://www.gwtproject.org/doc/latest/DevGuide.html 

Ahmet Dakoglu

unread,
Jan 3, 2014, 4:18:42 AM1/3/14
to google-we...@googlegroups.com
This could be helpful too.





Ahmet DAKOĞLU



--
Reply all
Reply to author
Forward
0 new messages