RE: [OpenMap Users] Starting OpenMap

From: John Pearson <rcd2951_at_satx.rr.com>
Date: Wed, 14 Dec 2005 16:21:36 -0600

Don...

I think the problem may be that the file I downloaded
(ftp://openmap.bbn.com/pub/customer-redirect/openmap/openmap-beta-2005071210
28.tar.gz) may be corrupt. I tried to open it on a Windows 2000 SP4 system
using WinRAR 3.5.1.

The following messages were displayed:
        ! C:\Documents and Settings\Administrator\My
Documents\openmap\openmap-beta-200507121028.tar.gz: Unexpected end of
archive
        ! C:\Documents and Settings\Administrator\My
Documents\openmap\openmap-beta-200507121028.tar.gz: The archive is corrupt


I made the changes you described below, but still get the same error.. I
have discovered that there is no openmap.jar in the lib directory.

I treid redownloading the beta file above, and it still appears to be
corrupt.

JP



-----Original Message-----
From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com]On
Behalf Of Don Dietrick
Sent: Wednesday, December 14, 2005 10:06 AM
To: John Pearson
Cc: Openmap-Users
Subject: Re: [OpenMap Users] Starting OpenMap


Hi John,

On Dec 9, 2005, at 10:30 AM, John Pearson wrote:

> Hi List:
>
> I recently downloaded the OpenMap 4.6.3 beta version, and set my
> paths as
> required by openmap.bat in the bin directory, but OpenMap fails to
> start,
> throwing the following exception
>
> C:\openmap\bin>openmap.bat
> Exception in thread "main" java.lang.NoClassDefFoundError:
> com/bbn/openmap/app/OpenMap
>
> I looked in the directory and didn't see any ".class" files, but
> neither did
> I see them in the directory tree for the 4.6.2 release.

The .class files are in the jar file, they are what the jvm actually
uses when running a java program.

The problem is that the jar file isn't in your classpath.

> As you can see I have OpenMap installed on my C:\ drive in "C:
> \openmap".,
> Java is installed in "C:\Program Files\Java\jdk1.5.0_05".
> The contents of openmap.bat are as follows:
>
> _at_echo off
>
> rem This will launch the OpenMap application
> rem YOU MUST EDIT THE SETTINGS IN THIS FILE TO MATCH YOUR
> CONFIGURATION
>
> rem Java Virtual Machine
> rem CHANGE THIS TO POINT TO YOUR JAVA INSTALLATION IF JAVA ISN"T IN
> YOUR PATH
> set JAVABIN=C:\PROGRA~1\JAVA\jdk1.5.0_05\bin\java.exe
>
> rem OpenMap top-level directory
> rem THIS POINTS TO THE DIRECTORY ABOVE "BIN". CHANGE THIS IF YOU
> MOVE THE
> rem BATCH FILE.
> set OPENMAP_HOME=C:\openmap
>
> rem CLASSPATH points to toplevel OpenMap directory and share
> rem subdirectory. Add other jar files as available.
> set
> CLASSPATH=%OPENMAP_HOME%;%OPENMAP_HOME%\classes\openmap;%
> OPENMAP_HOME%\share
> ;%OPENMAP_HOME%\lib\milStd2525_png.jar;%OPENMAP_HOME%\lib
> \openmap.jar;%OPENM
> AP_HOME%\lib\omsvg.jar;%OPENMAP_HOME%\lib\omj3d.jar;%OPENMAP_HOME%
> \lib\omcor
> ba_vb.jar;
>
> rem OK, now run OpenMap
> %JAVABIN% -Xmx64m -Dopenmap.configDir=%OPENMAP_HOME%\share
> -Ddebug.showprogress com.bbn.openmap.app.OpenMap
>
>
> Any Ideas why I can't get OpenMap to start?

Is the OpenMap installation at c:/openmap?

You could also modify the bin.bat script so that it contains a jvm
flag that explicitly sets the classpath:


%JAVABIN% -Xmx64m -Dopenmap.configDir=%OPENMAP_HOME%\share
-Ddebug.showprogress -classpath %CLASSPATH% com.bbn.openmap.app.OpenMap


Hope this helps,

Don


--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe
openmap-users"]
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Dec 14 2005 - 17:24:07 EST

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:07 EDT