3 ms·
They already have a compiler, ECJ, which is included in Eclipse and Tomcat among other things.
by emmelaich 9y ago
They already have a compiler, ECJ, which is included in Eclipse and Tomcat among other things.
- oblio 9y agoECJ is in Tomcat? What for?
- emmelaich 9y agoCompiling Java :-) To be more precise, a compiler is required for JSP, which is a mixture of html and java that is compiled to servlets. Theoretically you can compile them ahead of time (before deployment) but as far as I can tell no-one does.
- solarengineer 9y agoThose who want to provide only class files and no jsp code use the JSP pre-compilation approach. The JSP folks get compiled to Java servlet byte code the same as at runtime.
- merb 9y agodoes ecj support indy and newer bytecode? I do not think so, but I guess openj9 already supports java 9 bytecode I'm not sure about the actual bytecode version I guess it was 52 on java 8 but I'm not totally sure about it. I mean ecj is also not included in openj9, so if you want to strip out any openjdk dependency one would need at least a really basic class lib and a compiler (either ecj or anything else), (but I also think it hears that openj9 includes a compiler https://www.youtube.com/watch?v=96XoG6xcnys https://www.youtube.com/watch?v=96XoG6xcnys at the end he only says that they use the class library from openjdk, but he does not say if anything else and it also looks like it only uses that).