Skip to content

I got ClassNotFoundException in Linux #35

Closed
@ZhaoxuanSu

Description

@ZhaoxuanSu

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions