JVM creation failed

390 views
Skip to first unread message

Doug Hull

unread,
May 26, 2013, 12:34:13 AM5/26/13
to osm2garm...@googlegroups.com
After adjusting all command line entries as per FAQs, I still get the error message. 
Any further things to try? 

Frantisek Mantlik

unread,
May 26, 2013, 8:14:08 AM5/26/13
to osm2garm...@googlegroups.com
Dear user,

to get more specific information about the source of error when JVM is not created, please run the software from the command prompt. E.g. under Windows, open the Command window and type the command similar to this:

C:\>"C:\Program Files\osm2garmin_1.2\bin\osm2garmin.exe"

Double quotes are part of the command. Please adapt the executable path according to your installation.

Doug Hull

unread,
May 26, 2013, 1:15:48 PM5/26/13
to osm2garm...@googlegroups.com
Screenshot of command line message attached. I'm running Windows 7, 64 bit. 
Capture.JPG

Frantisek Mantlik

unread,
May 26, 2013, 1:53:09 PM5/26/13
to osm2garm...@googlegroups.com
Dear user,

Osm2garmin installs in C:\Program Files\osm2garmin_1.2 (resp. C:\Program Files\osm2garmin_1.1 for the stable version) on both 32 and 64 bit Windows. Your path is incorrect, I guess.

Doug Hull

unread,
May 26, 2013, 3:08:46 PM5/26/13
to osm2garm...@googlegroups.com
OK, I reinstalled program in the "Program Files" directory and then ran again from command Prompt. Subsequent error message is attached.
Thanks for putting up with a newbie.

Doug H
Capture.JPG

Frantisek Mantlik

unread,
May 26, 2013, 3:40:43 PM5/26/13
to osm2garm...@googlegroups.com
Dear user,

your Java virtual machine runs out of memory. You need to adjust -J-Xmx parameter to fit available memory, e.g. add the following: -J-Xmx1400m at the end of the command (after all double quotes and a space). If the error persists, decrease the number after -J-Xmx. If the program will start successfully, you can try to increase the number to provide as much memory to the program as possible.

As soon as you will find the highest passing value, adjust the parameter following the instructions in the FAQ.

Frantisek Mantlik

unread,
May 26, 2013, 3:50:54 PM5/26/13
to osm2garm...@googlegroups.com
One more note:

If you really have Windows 7 64 bit, the most common source of the problem is running 32-bit Java only. You can test it simply typing 
java -version
at the command prompt. The response should be something like this:

java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode)

for 64-bit version of Java. Note the "64-Bit" phrase at the last line.

If your Java version is not 64-bit, simply download and install 64-bit Java from http://java.com/download (click "All java downloads" on the left side and select Windows offline 64bit). Finally, point your Osm2garmin installation to the newly installed Java - see instructions in the FAQ. If you will be successful, no memory adjustments will be needed most probably and your Osm2garmin installation will run with the best performance possible.
Reply all
Reply to author
Forward
0 new messages