Win version: unable to set a greater heap

I downloaded and installed the 3.4.10 community edition on a dell workstation with 32g RAM.

The system start as a console, with the standard .conf file.

I just tried to enlarge the heap as follow:

dbms.memory.heap.initial_size=2048m
dbms.memory.heap.max_size=4096m

but it doesn't want to start.

PS I:\neo4j-community-3.4.10> bin/neo4j console
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap

There is nothing special running on the machine: just windows 10 pro and sublime text 3, both using 7gB, so at least 25gB are free and available

Any suggestion?

I solved the problem.

The path variable pointed to the .../program files (x86)/java folder.

I just changed it in .../program files/java and everything run fine: I can now configure memory as big as I need, of course respecting the phisical limits.

A suggestion for neo4j installer developers: the installer program should check where the path point to, and let the user choice which version want to run.