Help needed for using MapImage applet
Stephen Lime
steve.lime at dnr.state.mn.us
Fri Nov 3 07:05:36 PST 2000
On the errors. Most certainly a java setup problem. Are classpath values correct? You need Sun's JDK AND the Netscape LiveConnect classes.
On public methods. It's easy. Assuming the applet is named "mapimage" just use:
document.mapimage.bonOn();
The mapimage applet has been totally re-written and that version needs to be uploaded and documented.
Steve
>>> "Doyon, Jean-Francois" <Jean-Francois.Doyon at CCRS.NRCan.gc.ca> 11/03/00 08:58 AM >>>
Hmmmm, I use this applet, but I've never seen that one, I was having
aproblem with my [img] reference having to be a fully referenced URL of the
"http://myhost.com[img]" type, that was giving a similar yet different error
message.
On the same topic though, how do I access the supposedly exported boxOn and
BoxOff methods ????
Maybe documenting this applet could become part of the -docs mailing list
discussions.
J.F.
> ----------
> From: Yeewen Sat[SMTP:yeewen at petromap.com]
> Sent: Thursday, November 02, 2000 4:47 PM
> To: Mapserver-Users
> Subject: Help needed for using MapImage applet
>
> Hi,
> I'm able to run the mapserver example that uses mapimage applet in
> http://terrasip.gis.umn.edu/projects/tutorial/ example 5.
> I tried to do the same with my project. I downloaded MapImage.zip from
> http://mapserver.gis.umn.edu/contributed.html, followed the instructions
> by Stephen Lime....by copying mapimage.class to my webserver (without
> recompiling). When it tries to execute the applet, I got the following
> errors:
>
> # Applet exception: error: java.lang.ClassFormatError: Wrong class name
> inside class file
> java.lang.ClassFormatError: Wrong class name inside class file
> at java.lang.ClassLoader.defineCass(Compiled Code)
> at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
> at netscape.applet.AppletClassLoader.findClass(Compiled Code)
> at netscape.applet.AppletClassLoader.loadClass1(Compiled Code)
> * at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
> at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
> at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled
> Code)
> at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
> at java.awt.EventDispatchThread.run(Compiled Code)
> at
> netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled
> Code)
>
> I'm using Netscape Communicator 4.76.
>
> I also tried compiling with Jdk1.1.8 (I couldn't find a copy of Java 1.1
> compiler), and reloading it. I get the same errors.
> Can anyone explain this?
>
> Thanks.
> --
> Yeewen
>
More information about the MapServer-users
mailing list