Re: [OpenMap Users] Starting OpenMap

From: Don Dietrick <dietrick_at_bbn.com>
Date: Wed, 14 Dec 2005 16:50:20 -0500

That's because the contents of that folder are placed in the
openmap.jar file, and then we delete the classes folder for the release.

If you use ant to re-compile OpenMap, the classes folder will be
recreated. We include that folder in the classpath so if someone
makes changes to the code and wants to see the results of those
changes, running the openmap.bat script will take that into account.

Having a non-existent folder in your classpath isn't a problem as
long as the openmap.jar file is in your classpath.

- Don


On Dec 14, 2005, at 4:27 PM, John Pearson wrote:

> Don:
>
> in my downloaded copy of the latest OpenMap beta there is no "classes"
> folder
>
> 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"]

--
[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 - 16:50:51 EST

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