[
https://issues.apache.org/jira/browse/SLING-8323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16797217#comment-16797217
]
Konrad Windszus commented on SLING-8323:
----------------------------------------
A simple JRE does usually not come with a compiler
(https://docs.oracle.com/javase/7/docs/api/javax/tools/ToolProvider.html#getSystemJavaCompiler()),
for that you would need to execute Sling with a JDK. We need to adjust the
prerequisites then.
> Use the JDK-provided JavaCompiler API instead of the Eclipse one
> ----------------------------------------------------------------
>
> Key: SLING-8323
> URL: https://issues.apache.org/jira/browse/SLING-8323
> Project: Sling
> Issue Type: Improvement
> Components: Commons
> Reporter: Robert Munteanu
> Priority: Major
> Fix For: Commons Compiler 2.3.8
>
>
> Using the Eclipse compiler API works fine, with two minor caveats:
> - the dependency must be upgraded periodically to get support for newer Java
> versions
> - we need to embed ecj (~2.7M)
> Since Java 7 the
> [JavaCompiler|https://docs.oracle.com/javase/7/docs/api/javax/tools/JavaCompiler.html]
> API allows programmatic access to the system java compiler. We should
> instead try and use this compiler.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)