OpenHFT / Chronicle-Map

Replicate your Key Value Store across your network, with consistency, persistance and performance.
http://chronicle.software/products/chronicle-map/
Apache License 2.0
2.73k stars 467 forks source link

solving tools.jar dependency while migrating to JRE 11 #506

Open kannankalli opened 5 months ago

kannankalli commented 5 months ago

HI, We are migrating our application to JRE 11 from JRE 8. we are using 3.23.5 version of chronicle map. Application is shutting down while starting. Below is the error

Exception in thread "main" java.lang.AssertionError: java.lang.ClassNotFoundException: com.sun.tools.javac.api.JavacTool at net.openhft.compiler.CompilerUtils.reset(CompilerUtils.java:64)

Based on my understanding, tools.jar is not present any more in jre 11. But chorincle map depends on JAvacTool which is from tools.jar. How should we mitigate this problem ? Should i add tools.jar as part of the classpath in JRE 11 ( copied from JRE 8 ) ?

yevgenp commented 2 weeks ago

Hi @kannankalli. Could you provide a minimal reproducing example?