I cant run batch files?

Discussion in 'General Help' started by AMinecraftLegend, Dec 21, 2014.

Thread Status:
Not open for further replies.
  1. I do not know why but I assume I changed something in environmental variables.

    upload_2014-12-21_10-20-11.png

    upload_2014-12-21_10-21-21.png

    Please help. I am 95% sure its something in ComSpec But just do not know what.
     
  2. Offline

    mrCookieSlime Retired Staff

  3. It was working fine till today and I did not edit it since I made it, but it this helps here yo go.




    upload_2014-12-21_10-28-40.png
    Code:
    java -XX:PermSize=128m -XX:MaxPermSize=256m -Xmx5G -Xms4G -jar cauldron-1.7.10-1.1236.05.212-server.jar
    PAUSE
     

    Attached Files:

  4. Offline

    mrCookieSlime Retired Staff

    @AMinecraftLegend
    Hmmm, whats inside your %Program Files%/java folder?
    Because the argument XX: PermSize and XX:MaxPermSize were removed in Java 8.
     
  5. upload_2014-12-21_10-35-14.png
    . It compiles fine on my other computer but this is the one for my computer which I cam not open my batch file.
     
  6. Offline

    mrCookieSlime Retired Staff

    @AMinecraftLegend
    Yea, maybe try to remove the Arguments I mentioned above. If this does not work, simply copy the path to your jre/bin/java.exe and replace the java argument in your run.bat with that path.
     
  7. Offline

    aterruit

    Running batch files require administrative access or user approval before using. Because the file is a .bat it auto-executes as soon as you click on it. Because it is an auto-executable that requires you to have direct access to a console, Windows requires you to prove you are an Admin.

    TL:DR -Try running it as an administrator.
     
Thread Status:
Not open for further replies.

Share This Page