This Content is from Stack Overflow. Question asked by CustomPayload
Does anyone know of a library or any ways to compile Java Source Code in a Java Application (I know its pretty confusing)
So I have some source code files like me.user.testapp.Main and me.user.testapp.Settings
I want it so you have a Java Application with a GUI that has some parameters to config the settings. When you click ‘Compile’ it should compile the source code files into a .jar file but I can’t seem to find any tools that has a compiler library or so to use in my code to compile source code files. Is that possible? And if it is can someone give me a hint on how to do it. Thank you.
This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.
This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.