#!/bin/bash

# This is JANINOC, the "Janino Java Compiler".
# It is a drop-in replacement for the JDK's "JAVAC" tool.

maven_repo="C:/Server/mavenrepo";
janino_version="3.0.16-SNAPSHOT";

janino_jar="$maven_repo/org/codehaus/janino/janino/$janino_version/janino-$janino_version.jar";
commons_compiler_jar="$maven_repo/org/codehaus/janino/commons-compiler/$janino_version/commons-compiler-$janino_version.jar";

main_class=org.codehaus.commons.compiler.samples.CompilerDemo;

cp="$janino_jar;$commons_compiler_jar";

java="$JAVA_HOME/jre/bin/java";

"$java" -classpath "$cp" "$main_class" "$@";
