Tuesday, June 23, 2015

Convert Java library to JS lib.

Hi all.

I have an Java application where I'm using https://bitcoinj.github.io/ lib. I want to use some simple functionality of bitcoinj in browser using pure JS. I made a research and found some answers on stackoverflow which points on get-exporter tool. I tried to create GettingStarted example. It seems the article is not covered topic at all. 
After compiling the project there are no Java classes and methods in the converted JS file at all. I also tried with the example project which I found here. However the same issue. Again on stackoverflow exporting-a-class-and-its-methods-in-gwt-for-use-in-native-javascript people has already faced with the same problem. Looks like GWT project must be run to make accessible all Java functionality from JS. Is it true? 
And back to my original problem: Is it possible to create standalone JS lib with embedded bitcoinj Java lib? Or it's just not possible technically due to JS limitations?


--
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-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment