Re: [OpenMap Users] no display from HelloWorld example, OpenMap 4.6

From: Bob Stine <bob_at_waltonstine.net>
Date: Fri, 20 Aug 2004 12:05:16 -0700 (PDT)

Don:
 
Thanks for your reply.
 
I did as you suggested, and got precisely the same results I originally reported: the program seems to run fine, but no window gets displayed.
 
What OS and what version JVM are you running?
 
My original approach to get the script to run was to copy the hello-world.bat file to <OPENMAP_HOME>\bin, and then run the batch file from the bin directory.
 
When running from JBuilder, I had the IDE copy HelloWorld.properties into the com/bbn/openmap/examples/hello directory under the "classes" output directory.
 
In both cases, this just makes it possible for the program to find the HelloWorld properties file. But even when it does, I get not GUI window.
 
In other words, the console output is:
 
D:\software\OpenMap\openmap-4.6\src\openmap\com\bbn\openmap\examples\hello>hello-world
Creating MapHandler
Creating MapBean
OpenMap(tm) Version 4.6
  Copyright (C) BBNT Solutions LLC. All rights reserved.
  See http://openmap.bbn.com/ for details.
Adding MouseEvent support...
Creating ToolPanel...
Creating Layers...
Done creating...
but nothing happens.

Don Dietrick <dietrick_at_bbn.com> wrote:
Hi Bob,

I got it to run by changing directories to the
src\openmap\com\bbn\openmap\examples\hello directory, modifying the
hello-world.bat file so the OPENMAP_HOME path variable pointed to the
top-level openmap directory, and then running hello-world.bat from
there.

If you want to get SimpleMap2 to work as expected, you can change line
76 from

MapPanel mapPanel = new BasicMapPanel();

to

MapPanel mapPanel = new BasicMapPanel(new
PropertyHandler(new Properties()));

The 'simple' scripts should be launched from their simple directory,
too.

- Don

On Aug 20, 2004, at 2:09 PM, Bob Stine wrote:

> I've just downloaded OpenMap 4.6 and I'm trying to work through the
> examples. I'm running on XP, java version 1.4.2_03.
>
> The problem I'm having with the HelloWorld example is that it never
> displays the JFrame. Console output looks like:
>
> D:\software\OpenMap\openmap-4.6\bin>hello-world.bat
> Creating MapHandler
> Creating MapBean
> OpenMap(tm) Version 4.6
> Copyright (C) BBNT Solutions LLC. All rights reserved.
> See http://openmap.bbn.com/ for details.
>
> Adding MouseEvent support...
> Creating ToolPanel...
> Creating Layers...
> Done creating...
>
>
> but at this point the JVM hangs.
>
> From the debugger, the "setVisible(true)" method returned
> successfully... everything seems to work fine, except that there is no
> display.
>
> The SimpleMap example works; the SimpleMap2 more or less works (at
> least it displays).
>
> Any idea where to start on this?
>
> Thanks.
>
>
>
>
>
> ___
> Bob Stine
> bob_at_waltonstine.net
> "Let's roll!" Todd Beamer, UA flight 93
>


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=




___
Bob Stine
bob_at_waltonstine.net
"Let's roll!" Todd Beamer, UA flight 93


--
[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 Fri Aug 20 2004 - 15:05:54 EDT

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