You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2013-06-18 15:43:56

BertMu
Member
Registered: 2012-10-30
Posts: 112

Splitter (MKGMAP) not working in Windows 8 (With Java 7)

After a long struggle to get Java 7(JRE) running on a 64Bits Windows 8 system, It seems Splitter is not working ???

The cmd dialog box is only to see for a short time, how can a pause that one?

How to list a help screen for Splitter..

Any help is much appriciated.... Windows 8 is driving me nuts hmm

Regards,

Bert

Last edited by BertMu (2013-06-19 18:33:39)

Offline

#2 2013-06-18 17:09:53

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: Splitter (MKGMAP) not working in Windows 8 (With Java 7)

Hi Bert,
The command for the help options (with output to a txt file)

java -jar splitter.jar --help=options >options_splitter.txt

I dont have win8 but it shouldnt be a problem to run it.

The command line could look as follows:

java -Xmx2000m -jar splitter.jar --output-dir=splitter --mapid=10010001 --polygon-file=%DIR%\resources\benelux.poly --max-nodes=1750000 --write-kml=benelux.kml --output=o5m --geonames-file=cities5000.txt --description=OFM_BNL %DIR%\Splitter\benelux.o5m

Offline

#3 2013-06-18 18:37:51

BertMu
Member
Registered: 2012-10-30
Posts: 112

Re: Splitter (MKGMAP) not working in Windows 8 (With Java 7)

ligfietser wrote:

Hi Bert,
The command for the help options (with output to a txt file)

java -jar splitter.jar --help=options >options_splitter.txt

Gives me a empty file...

I see that there are errors, but how to see what the errors are .... the dialog is to quick.

All the files worked with my old Vista computer, which died recently yikes

Offline

#4 2013-06-18 19:28:30

Joachim Moskalewski
Member
From: Sindelfingen
Registered: 2012-11-23
Posts: 346
Website

Re: Splitter (MKGMAP) not working in Windows 8 (With Java 7)

BertMu wrote:

The cmd dialog box is only to see for a short time, how can a pause that one?

You mean you are starting the programm "cmd.exe", type in your splitter command, and then "cmd.exe" crashes? I don't have a Windows 8, but: Even if splitter crashes, nothing happens to any command line interface - so that should be readable.

Offline

#5 2013-06-18 19:47:16

BertMu
Member
Registered: 2012-10-30
Posts: 112

Re: Splitter (MKGMAP) not working in Windows 8 (With Java 7)

Joachim Moskalewski wrote:
BertMu wrote:

The cmd dialog box is only to see for a short time, how can a pause that one?

You mean you are starting the programm "cmd.exe", type in your splitter command, and then "cmd.exe" crashes? I don't have a Windows 8, but: Even if splitter crashes, nothing happens to any command line interface - so that should be readable.

No, I see an error dialog for about 0.5 seconds but it is to quick to read, but I can see some class.xxx and method in it.. only wish I can freeze it to read proper.

Bert

Offline

#6 2013-06-18 20:02:40

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: Splitter (MKGMAP) not working in Windows 8 (With Java 7)

why dont you make a batch file?
Put the command string in a text file, and on the second line
pause
Save it as splitter.bat and run it.

Offline

#7 2013-06-18 20:07:56

BertMu
Member
Registered: 2012-10-30
Posts: 112

Re: Splitter (MKGMAP) not working in Windows 8 (With Java 7)

ligfietser wrote:

why dont you make a batch file?
Put the command string in a text file, and on the second line
pause
Save it as splitter.bat and run it.

pUpXQIL.png

Last edited by BertMu (2013-06-18 20:16:48)

Offline

#8 2013-06-18 20:32:46

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: Splitter (MKGMAP) not working in Windows 8 (With Java 7)

I think you need to run the splitter in its own directory, it needs other files, you cant run a standalone splitter.jar, so
splitter-r305\splitter.jar

Offline

#9 2013-06-18 21:16:51

BertMu
Member
Registered: 2012-10-30
Posts: 112

Re: Splitter (MKGMAP) not working in Windows 8 (With Java 7)

same result

Offline

#10 2013-06-18 21:54:17

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: Splitter (MKGMAP) not working in Windows 8 (With Java 7)

Well, then you could post your question on the mkgmap mailing list...

Offline

#11 2013-06-18 22:02:31

ligfietser
Member
Registered: 2008-10-09
Posts: 5,353
Website

Re: Splitter (MKGMAP) not working in Windows 8 (With Java 7)

Maybe this helps?

http://www.cloudhadoop.com/2012/03/6-wa … cDKZZzg6o0

2. Fix for java.lang.NoClassDefFoundError in windows:-

To solve NoClassDefFoundError error in windows , we have to set CLASSPATH environment variable.

to set classpath in windows, we have to configure the below values

set CLASSPATH=%CLASSPATH%;.;

%CLASSPATH% means existing classpath to be added and . points to current directory

Offline

#12 2013-06-19 18:32:51

BertMu
Member
Registered: 2012-10-30
Posts: 112

Re: Splitter (MKGMAP) not working in Windows 8 (With Java 7)

Update:
Downgraded to Java 6 update 43 -> Everything works OK
Update to Java 7 update 25 -> Nothing works and the computer is getting slooooooooooooowwwwww

So for now I will stick to Java 6 and hope this get solved in another update sad

Offline

#13 2013-06-20 19:30:49

WanMil
Member
Registered: 2009-04-09
Posts: 109

Re: Splitter (MKGMAP) not working in Windows 8 (With Java 7)

It seems that depending libraries are not found. They are contained in the splitter-r305.zip file.
Please ensure that your c:\test directory contains the complete contents of the downloaded splitter-r305.zip file. At least the lib directory must be in c:\test

WanMil

Offline

Board footer

Powered by FluxBB