Skip to content

Instantly share code, notes, and snippets.

@KeKsBoTer
Last active June 22, 2018 11:12
Show Gist options
  • Save KeKsBoTer/2f0e139ac7d653b652b9935763fdbf8b to your computer and use it in GitHub Desktop.
Save KeKsBoTer/2f0e139ac7d653b652b9935763fdbf8b to your computer and use it in GitHub Desktop.
#
#
# launcher script for the setlX interpreter on Microsoft Windows
#
#
# insert path to the folder where you copied the jar files here
$setlXJarDirectory = "."
# insert full path to library location here
$SETLX_LIBRARY_PATH= "."
# ########################## additional options ##############################
$javaParameters= ""
# uncomment by #oving '#' to force execution in 64 bit mode (only recent Java versions for Windows support this)
# $javaParameters= "$javaParameters -d64"
# uncomment by #oving '#' to execute with increased memory size (6GB) (>2GB needs 64 Bit mode!)
# $javaParameters = "$javaParameters -Xmx6144m"
############################################################################
$class_path = $env:CLASSPATH
$jars = Get-ChildItem "$setlXJarDirectory\*.jar"
foreach ($jar in $jars) {
$class_path = "$($jar.FullName);$class_path"
}
if($class_path -ne $env_class_path){
java -cp "$class_path" "$javaParameters" org.randoom.setlx.pc.ui.SetlX @args
}else{
Write-Output "The setlX jar files cannot be found!"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment