Saturday, December 10, 2016

Re: Use of existing java applications/ jars in a GWT project

Hi
 Thanks for all those suggestions.
I will try to see how teavm works.

We have an full enterprise application , build on eclipse GEF framework which needs to be moved to web.It depends on tons of other jars
I was looking into GWT as a means. But kind of dont feel very good about the requirement of source code, though I understand its need
May be my existing application is not a good candidate for GWT  , due to this requirement.

That being said, I will try TeaVM
Decompiling: not sure how many level deep I will have to dcompile.


Thanks



On Sat, Dec 10, 2016 at 9:56 AM, Jens <jens.nehlmeier@gmail.com> wrote:

HI Jens
   Thanks for the reply
   - How do we define GWT modules externally , for classes in third party jars

Just like normal GWT modules, its only important that they are in the correct package, e.g. if you want to use com.3rdparty.math.* you could create com/3rdparty/Math.gwt.xml and use <source path="math"/> to make the code available to GWT compiler. You can either store the Math.gwt.xml file in your main project source directory or make a dedicated project you depend on.
 


- And if the source code is needed by GWT compiler, if we have third party jars , with no source code, then they cannot be used as part of the GWT app
  Would that be a correct statement

Yes, if there is no way to get the source code, you can not use GWT. In that case you have to use a solution based on class files only like teaVM. But given that you can decompile Java classes you might still be able to use GWT by recreating the source from the classes. However I never tried it.


-- J.
 

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

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

No comments:

Post a Comment