Make sure you are running it with a 64-bit Java installation. Your OS architecture doesn't matter. If you're on a 64-bit system, but use a 32-bit Java, Java will be 32-bit.
As a simple test, run
java -version
in a command line. The last line should contain info about the JVM's architecture.