Skip to content

henryhuang/dynamiccompiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dynamiccompiler

Compile java code at runtime dynamically.

maven travis

Dependency

<dependency>
    <groupId>com.github.henryhuang</groupId>
    <artifactId>dynamiccompiler</artifactId>
    <version>0.1.0</version>
</dependency>

Usage

ClassGenerator builder = new ClassGenerator(".");
Class<?> testClass = builder.generate("Test",
		"public class Test{public static void main(String[] args){System.out.println(\"Test!\");}}");
String[] params = null;
testClass.getMethod("main", String[].class).invoke(null, (Object) params);
	

License

MIT

About

java dynamic compile tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages