Tagged articles

JavaCompiler

3 articles · Page 1 of 1
Java Tech Enthusiast
Java Tech Enthusiast
Mar 6, 2025 · Backend Development

Java Dynamic Compilation and Runtime Hot Reload with JavaCompiler and Custom ClassLoader

By using the JavaCompiler API to compile source files at runtime together with a custom ClassLoader that loads the generated bytecode, developers can hot‑reload changed classes instantly without restarting the JVM, enabling rapid iteration, plugin‑style extensions, and faster development cycles.

ClassLoaderDynamic CompilationJavaCompiler
0 likes · 6 min read
Java Dynamic Compilation and Runtime Hot Reload with JavaCompiler and Custom ClassLoader
政采云技术
政采云技术
Jul 13, 2023 · Backend Development

Practical Use of Java Dynamic Compilation in Projects

This article explains how Java's dynamic compilation can be applied to modularize and simplify code management in large projects, demonstrates a basic implementation with code examples, and shows how to integrate the technique into Spring Boot applications while addressing class‑loader and dependency challenges.

ClassLoaderDynamic CompilationJavaCompiler
0 likes · 16 min read
Practical Use of Java Dynamic Compilation in Projects
Programmer DD
Programmer DD
Jul 10, 2021 · Backend Development

How to Validate Spring Cloud Dynamic Configs with In‑Memory Java Compilation

This article explains how to build a runtime validator for Spring Cloud dynamic configuration by generating Java classes from .properties files, compiling them in memory with JavaCompiler, loading them via a custom ClassLoader, and integrating the result into the Spring context to catch configuration errors early.

Dynamic ConfigurationJavaCompilerSpring Cloud
0 likes · 8 min read
How to Validate Spring Cloud Dynamic Configs with In‑Memory Java Compilation