Guest User

Untitled

a guest
Jun 23rd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. #
  2. #
  3. # launcher script for the setlX interpreter on Microsoft Windows
  4. #
  5. #
  6.  
  7. # insert path to the folder where you copied the jar files here
  8. $setlXJarDirectory = "."
  9.  
  10. # insert full path to library location here
  11. $SETLX_LIBRARY_PATH= "."
  12.  
  13. # ########################## additional options ##############################
  14. $javaParameters= ""
  15.  
  16. # uncomment by #oving '#' to force execution in 64 bit mode (only recent Java versions for Windows support this)
  17. # $javaParameters= "$javaParameters -d64"
  18.  
  19. # uncomment by #oving '#' to execute with increased memory size (6GB) (>2GB needs 64 Bit mode!)
  20. # $javaParameters = "$javaParameters -Xmx6144m"
  21.  
  22. ############################################################################
  23.  
  24. $class_path = $env:CLASSPATH
  25. $jars = Get-ChildItem "$setlXJarDirectory\*.jar"
  26. foreach ($jar in $jars) {
  27. $class_path = "$($jar.FullName);$class_path"
  28. }
  29.  
  30. if($class_path -ne $env_class_path){
  31. java -cp "$class_path" "$javaParameters" org.randoom.setlx.pc.ui.SetlX @args
  32. }else{
  33. Write-Output "The setlX jar files cannot be found!"
  34. }
Add Comment
Please, Sign In to add comment