gcjwebplugin-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gcjwebplugin-user] gcjwebplugin exception with a simple example


From: Thomas Fitzsimmons
Subject: Re: [Gcjwebplugin-user] gcjwebplugin exception with a simple example
Date: Sun, 16 Apr 2006 10:23:41 -0400
User-agent: Thunderbird 1.5 (X11/20060313)

VMiklos wrote:
hi!

i have gcjwebplugin-0.3.2 installed. i tried to test gcjwebplugin with
this simple example:

http://www.ent.ohiou.edu/~pwxmy/applet/example/example1.class

however i got:
$ gcjappletviewer example1.class
raw arguments:
 example1.class
parsed applet tags:
 tag 0:
  name=
  code=example1.class
  codebase=
  archive=[]
  parameters={width=320, height=200}
  documentbase=file:/home/vmiklos/darcs/vmiklos/source/gcjwebplugin/

java.lang.NoClassDefFoundError: example1
   at java.lang.Class.initializeClass (libgcj.so.7)
   at java.lang.Class.newInstance (libgcj.so.7)
   at gnu.gcjwebplugin.AppletViewer.createApplet (AppletViewer.java:89)
   at gnu.gcjwebplugin.StandaloneAppletWindow.<init>
(StandaloneAppletWindow.java:69)
   at gnu.gcjwebplugin.StandaloneAppletViewer.<init>
(StandaloneAppletViewer.java:155)
   at gnu.gcjwebplugin.AppletViewer.main (AppletViewer.java:287)
Caused by: java.lang.ClassNotFoundException: Popupwindow not found in
gnu.gcjwebplugin.AppletClassLoader{urls=[file:/home/vmiklos/darcs/vmiklos/source/gcjwebplugin/],
parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:/usr/share/java/gcjappletviewer.jar],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}
   at java.net.URLClassLoader.findClass (libgcj.so.7)
   at gnu.gcjwebplugin.AppletClassLoader.findClass
(AppletClassLoader.java:77)
   at java.lang.ClassLoader.loadClass (libgcj.so.7)
   at java.lang.ClassLoader.loadClass (libgcj.so.7)
   at java.lang.Class.forName (libgcj.so.7)
   at java.lang.Class.initializeClass (libgcj.so.7)
   ...5 more

is this normal? or ideally what should provide that Popupwindow
function?

That class is in the codebase directory of the applet URL. Try this invocation instead:

gcjappletviewer http://www.ent.ohiou.edu/~pwxmy/applet/example/

gcjappletviewer expects its argument to be a URL of an applet-containing HTML page. It then looks for classes in the applet's codebase.

Tom





reply via email to

[Prev in Thread] Current Thread [Next in Thread]