Gradle Wrapper JAVA_OPT troubles

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.

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

The closing quote?

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

Under Windows you don’t need the double quotes:

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

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