If I have implemented a Java Library (that offers certain functionality), could I transform this into a JavaScript library, such that the same functionality can be offered? I know this may be an ask, but, I was wondering if there are frameworks existing that help in this?
-
1It depends on what your library does. What does it do?Andrew– Andrew2011-08-03 15:42:53 +00:00Commented Aug 3, 2011 at 15:42
-
@Andrew it mainly polls web-services, put data into the DB. But it does involve many external libraries to handle data conversion, etc.Larry– Larry2011-08-03 15:52:24 +00:00Commented Aug 3, 2011 at 15:52
Add a comment
|
2 Answers
No, in general this is not possible, Java and JavaScript are more or less completely different languages.
However there are a couple of Java to JavaScript translators that you can try. Java2Script is one such tool. Apparently the Google Web Toolkit (GWT) does this as well. Source.