Changes between Version 10 and Version 11 of Download


Ignore:
Timestamp:
2012-07-18T19:19:36+02:00 (14 years ago)
Author:
verdy_p
Comment:

add section to solve runtime problems with Windows x64

Legend:

Unmodified
Added
Removed
Modified
  • Download

    v10 v11  
    8888JAVA_OPTS="-Djosm.home=$HOME/.josm-tmp" josm
    8989}}}
     90
     91=== VM selection on Windows x64 ===
     92
     93For Windows, beware that some browsers may install their own JRE only in 32 bit mode, but may also install their version of the Javawevstrat tool somewhere else with differnt file assoxiations. This may cause your JNLP to start with this alternate JRE becaue it runs the wring version of Javawebstart which only supports the 32 bit VM, ans sometimes built with a restricted support for VM options, and a max VM size not exceeding 256MB.
     94
     95Check for example if there's no other javawebstart in \Windows\SysWow64. You should not need it (the Java control panel will not detect it) and could safely delete it. Perfom cleanup and only keep the latest version of the JRE (1 for the 32-bit mode, another one for the 64-bit mode).
     96
     97For shortcuts created on the desktop for JNLP and running the Javawebstart launcher (from \windows\system32), make sure to pass VM parameters prefixed with -J and no intermediate space before the VM option. If you have installd bith the 32-bit and 64-bit version, you should pass the option "-d64" if you want to select the preferred the 64-bit VM. Note that some Oracle documentation pages indicates the option "-D64" with the incorrect capitalization!)
     98
     99Example of an edited commandline for the shortcut created on the windows desktop after running JOSM just once from the JNMP and exiting:
     100{{{
     101C:\Windows\System32\javaws.exe -J-d64 -Xmx=2048m -localfile -J-Djnlp.application.href=http://josm.openstreetmap.de/download/josm.jnlp "C:\Users\<snipped user name>\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\21\7311<snipped-hex-number>7f8"
     102}}}
     103You don't need to change the end of the command line with the snipped parts here. Just check the path for javaws.exe and add options "-J-d64" for the 64-bit mode needed to work with large OSM datasets, and "-Xmx=2048m" to increase the VM size (to 2GB here).