Gradle Wrapper JAVA_OPT troubles


(Phil Swenson) #1

I’m having a lot of trouble with the gradlew.bat script. If I put in:

set JAVA_OPTS="-Xmx1024m"

this seems to work. However if I put in

set JAVA_OPTS="-Xmx1024m -XX:MaxPermSize=256m

I get this:

Invalid maximum heap size: -Xmx1024m -XX:MaxPermSize=256m Could not create the Java virtual machine.

Putting these settings in the unix script works fine.

Seems like there is something obvious I’m overlooking, but don’t know what.


(Peter Niederwieser) #2

Seems like there is something obvious I’m overlooking, but don’t know what.

The closing quote?


(Phil Swenson) #3

sorry, that’s a copy/paste error. it’s there in my script


(Benjamin Muschko) #4

Under Windows you don’t need the double quotes:

set JAVA_OPTS=-Xmx1024m -XX:MaxPermSize=256m


(Phil Swenson) #5

thanks Benjamin. I copy/pasted directly from the unix script. I would have never figured it out just looking at this!