j2cl_webpack_demo

how this project is created?

  1. This probject is created using vue create j2cl_webpack_demo
  2. The helloworld.js and helloword.js.map are copied from j2cl_export_symbol_demo, which is based on j2cl sample project in j2cl repo with minor modification.
  3. after yarn install and yarn serve, the output in the sceen should be 'Hello from Java! and JS!' hello

why this useful?

If you have a java lib and plan to use it in browser, this approach works.

How about start a new project and write new code in java? You will have better experience with other language, such as typescript, bucklescript.