ScriptingWithJava is a shellscript (Bash- and PowerShell-Version) helping you to make Java usable as a scripting language.
Typical production servers do not provide tools like maven or gradle meanwhile OpenJDK is available. So edit and recompile Java programs in SSH-Sessions is possible but unhandy.
- You are willing to deploy you Java application in source form as .java files.
- All your java files exits in a flat folder.
- All classes are member of the same package.
- The App-Name defined as $PROG must match the name of the public class providing the public static void main method.
When this script is called, it compares the change date of the Java program with the compiled jar (or class) file and decides if a recompile/rebuild is necessary before execution.
- Support for additional jar files (dependencies)
- Support for non existing Package-Name (default package)