Hi I've been in contact with the creator of this program & we're both stumped as to the cause. https://www.pinns.co.uk/osm/mapuploader5.html Mapuploader should automatically find Java when it's installed. I use Java to run a number of tools including mkgmap, so it is working. Mapuploader's own testing batch file returns the latest version. The paths stored in my PATH system variable: C:\Program Files (x86)\Common Files\Oracle\Java\javapath; C:\ProgramData\Oracle\Java\javapath; Has anyone else had this problem? Can anyone suggest a solution? Cheers DaveF asked 30 Dec '18, 14:38 DaveF aseerel4c26 ♦
showing 5 of 9
show 4 more comments
|
I do not have windows nor mapuploader, but the "javapath" in your path looks strange. Does running
java -version
from a shell work (returns the java version info)? If not, then your paths are wrong.Yes. Mapuploader's testing batch file runs
java -version
so, if this works, I really think there is something wrong with mapuploader. Did the developer try it with the exact same version of java as you? If not try to run the version the dev uses.
Maybe the actually error message would be helpful?
Try to set your environment variables as described in this answer. As aseerel4c26 already noted your java path looks really strange. However I don't have a Windows installation so I can't compare it with mine.
@aseerel4c26 No real error message. It's a GUI with a red asterisk next to "Java" (indicating it's not found Java)
@scai I'll look into it later, but I don't see how the PATH really makes a difference. The whole point of PATH is it allows a program to be run from any directory without knowing it exact location. Java installed it in that folder. As I said
java -version
shows it's installed correctly.Then either Mapuploader doesn't use PATH to determine where java is installed or Mapuploader sees a different PATH for some reason.
Are C:\Program Files (x86)\Common Files\Oracle\Java\javapath and C:\ProgramData\Oracle\Java\javapath directories that actually exist? Typically Oracle will install in dirs that look like C:\Program Files\Java\jre1.8.0_111 so I suspect that the "javapath" bit is really just a placeholder for the real directory.
"javapath" is what I see on a Windows 7 laptop that's had various versions of Oracle Java on it. Path starts with:
Both "javapath" directories actually exist.
java -version gives:
so I'm guessing that it's a recent change.
Personally I'd suggest OpenJDK over "Oracle Java" these days, but this is what this machine historically has on it.