Create .java file and compile it to a .class file at runtime
问题 I'm generating a whole bunch of .java files from an XSD file using XJC. I also need to compile those files to .class files and use them at runtime via reflection. The problem I'm having is that after I generate the .java files and try to compile them, the compiler can't compile them properly and gives me the following error: .\src\com\program\data\ClassOne.java:44: error: cannot find symbol protected List<ClassTwo> description; ^ symbol: class ClassTwo location: class ClassOne I'm assuming