Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- #
- # 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!"
- }
Add Comment
Please, Sign In to add comment