Description
It runs well in Eclipse IDE in WINDOWS. But I got ClassNotFoundException when running it in Linux. This project is building by SpringBoot and packing by Maven with JDK1.8.0_112.
Exception detail:
Caused by: java.lang.ClassNotFoundException: com.szx.core.logexp.dc.Lecilfaafaafroolfaafaafr
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:94)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at net.openhft.compiler.CachedCompiler.loadFromJava(CachedCompiler.java:163)
at net.openhft.compiler.CachedCompiler.loadFromJava(CachedCompiler.java:70)
My code:
CompilerUtils.CACHED_COMPILER.loadFromJava(className, javaCode).newInstance();
So what problem did I got?