When I run java code similar to this:
JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
...
CompilationTask task = compiler.getTask(null, javaFileManager, diagnosticCollector, null, null, Collections.singletonList(fileObject));
task.call();
A file called classlist.mf appears in my working directory.
None of my sources contain the string "classlist". I am only using the standard javax.tools api's. That file contains exactly one (of the many) classes that I generated:
org.optaplanner.core.impl.domain.common.accessor.generated.org.optaplanner.examples.common.domain.AbstractPersistable$getId
How can I prevent that classlist.mf file from appearing in my working directory?
proper care needs to be taken that it doesn’t generate a classlist.mf file in the working directory. Did you ever figure this out? If so, can you please answer your own question here?