cincheo / jsweet

A Java to JavaScript transpiler.
http://www.jsweet.org
Other
1.45k stars 159 forks source link

Make JSweet work in tomcat web application #684

Open mee-omi opened 3 years ago

mee-omi commented 3 years ago

I have tried transpiling java file to javascript file using jsweet library. It works when I executed via the main method of the java class. But the same code does not work when called via a web application hosted on tomcat. Is there any configuration needed for that ?

I am using JDK : 1.8

what I have noticed is when executed from web application : setupCompiler() method from jsweet class 'org.jsweet.transpiler.JSweetTranspiler' returns null giving warning message : errors during parse tree

lgrignon commented 3 years ago

Hello. Did you try with JSweet 3? I think Java 11 + JSweet 3 would work better for you