j2cl_webpack_demo
how this project is created?
- This probject is created using
vue create j2cl_webpack_demo
- The
helloworld.js
andhelloword.js.map
are copied from j2cl_export_symbol_demo, which is based onj2cl sample project
in j2cl repo with minor modification. - after
yarn install
andyarn serve
, the output in the sceen should be 'Hello from Java! and JS!'
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.