InMemoryJavaCompiler icon indicating copy to clipboard operation
InMemoryJavaCompiler copied to clipboard

Utility class to compile java source code in memory

Results 27 InMemoryJavaCompiler issues
Sort by recently updated
recently updated
newest added

In a tomcat server, at run time, I am reading java class files and compiling them dynamically using InMemoryJavaCompiler. Code Sample - ``` InMemoryJavaCompiler.newInstance() .useOptions("-parameters", "-classpath", sb.toString(), "-Xlint:unchecked") .compile(sourceCodeClassName, sourceCode.toString());...

I would like to convert String variables to java code to build a NetCDF file from strings. I have some Strings which contain the commands to write a netCDF. For...

Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1. Release notes Sourced from junit's releases. JUnit 4.13.1 Please refer to the release notes for details. JUnit 4.13 Please refer to the release notes...

dependencies

If I ask InMemoryJavaCompiler to compile a new class with the same name as an existing class, the compile() method returns a reference to the existing class. Minimal example across...

bug
help wanted

I've a scenario where I want to create a class in runtime then use it. I tried using the code provided here but it just light up like Christmas tree....

Added an option to compile into a byte array and an option to run the compiled code at a later time

``` Error executing script! org.mdkt.compiler.CompilationException: Unable to compile the source ``` How I can fix it on my Ubuntu x64? I've two versions of jdk 1.8 and 1.11, and switch...

I need access to the individual diagnostics messages. Unfortunately, the only implemented behaviour was to throw an exception when on compile errors/warnings. What do you think?