mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
16 lines
431 B
Java
Vendored
16 lines
431 B
Java
Vendored
import java.io.*;
|
|
import java.net.*;
|
|
|
|
public class Main {
|
|
public static void main(String[] args) throws Exception {
|
|
URL[] urls = new URL[args.length];
|
|
for (int i = 0; i < args.length; i++) {
|
|
urls[i] = new File(args[i]).toURI().toURL();
|
|
}
|
|
|
|
ClassLoader cl = new URLClassLoader(urls);
|
|
Class<?> c = cl.loadClass("TestKt");
|
|
c.getDeclaredMethods()[0].invoke(null);
|
|
}
|
|
}
|