Skip to content

rvillablanca/java-launcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

10080ba · Dec 5, 2019

History

74 Commits
Feb 25, 2016
Mar 4, 2016
May 14, 2016
Apr 23, 2016
Feb 25, 2016
Dec 5, 2019
Mar 11, 2016
Mar 30, 2016

Repository files navigation

java-launcher

Simple Python/Bash script and C program for launch java apps on Linux

Configuration

You need set the configuration directly on the script. For purposes of example, the default configuration is:

Python

version = 7                              #Min version of required Java
mainclass = "cl.rvillablanca.Main"       #Main class
classpath = ""                           #Class path of your application (Jars and folders)
javaoptions = ["-Xms256m", "-Xmx512m"]   #Set up Java configurations
programname = "Launcher Example"         #Your program name
isjar = True                             #True if you will run a jar file
jarfile = "jar/launcher.jar"             #The jar file name if 'isjar' is True

Bash

version=7                                #Min version of required Java
mainclass="cl.rvillablanca.Main"         #Main class
classpath=""                             #Class path of your application (Jars and folders)
javaoptions=("-Xms256m" "-Xmx512m")      #Set up Java configurations
programname="Launcher Example"           #Your program name
isjar=1                                  #1 if you will run a jar file
jarfile="jar/launcher.jar"               #The jar file name if 'isjar' is True

Maybe you would like rename the file like mv launcher.py myprogram or mv launcher.sh myprogram and then run it with ./myprogram or ./myprogram firstArg secondArg

Running example

./launcher.py
./launcher.sh

./launcher.py firstArg secondArg
./launcher.sh firstArg secondArg

About

Simple Python Script for launching java apps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published