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's gravatar image

DaveF
1.0k365070
accept rate: 0%

edited 31 Dec '18, 14:53

aseerel4c26's gravatar image

aseerel4c26 ♦
31.7k15235543

1

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.

(31 Dec '18, 14:55) aseerel4c26 ♦

Yes. Mapuploader's testing batch file runs java -version

(31 Dec '18, 15:02) DaveF

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.

(31 Dec '18, 15:33) aseerel4c26 ♦

Maybe the actually error message would be helpful?

(01 Jan, 22:20) SimonPoole ♦

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.

(03 Jan, 08:10) scai ♦

@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.

(03 Jan, 14:02) DaveF

Then either Mapuploader doesn't use PATH to determine where java is installed or Mapuploader sees a different PATH for some reason.

(03 Jan, 14:37) scai ♦

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.

(04 Jan, 08:51) SimonPoole ♦

"javapath" is what I see on a Windows 7 laptop that's had various versions of Oracle Java on it. Path starts with:

C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Java\jdk1.7.0_45\bin;C:\Windows\system32;C:\Windows;<other_stuff>

Both "javapath" directories actually exist.

java -version gives:

java version "1.8.0_191"

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.

(07 Jan, 20:45) SomeoneElse ♦
showing 5 of 9 show 4 more comments
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×279
×58
×1

question asked: 30 Dec '18, 14:38

question was seen: 102 times

last updated: 07 Jan, 20:50

powered by OSQA