This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Making the scribble applet run in a browser


Hi fellow schemers,

I'm trying to make the scribble applet run in a browser.
It runs fine in appletviewer using the -J-cp flag, but I can not make it 
run without or in a browser.

I'm using kawa 1.8.95.

I have tried various strange things, and here is one of the approaches 
that doesn't seem to work for me:

mkdir www_docs/scribble
cd www_docs/scribble
cp -a /hom/kjetism/kawa-1.8.95/gnu .
cp -a /hom/kjetism/kawa-1.8.95/kawa .
cp /hom/kjetism/kawa-1.8.95/testsuite/scribble.scm .
kawa --applet -C scribble.scm
jar cf scribble.jar scribble*.class gnu kawa
cp /hom/kjetism/kawa-1.8.95/testsuite/scribble.html .
 (add archive="scribble.jar" to this file)


And the result of this can be found here:
http://www.notam02.no/~kjetism/scribble/

When loading scribble.html I get the error below. I don't know
what that means. Line 206 looks like this:
"return ModuleManager.getInstance().findWithClassName(className);"

I guess I might have just done some newbie error, so any help
is appreciated. Thanks.




"
Loading applet ...
Initializing applet ...
Starting applet ...
Connecting http://www.notam02.no/~kjetism/scribble/scribble.jar with no proxy
Connecting http://www.notam02.no/~kjetism/scribble/scribble.jar with cookie " "
Downloading http://www.notam02.no/~kjetism/scribble/scribble.jar to cache
Cached file name: scribble.jar-7db209d0-68c88b71.zip
java.lang.ExceptionInInitializerError
	at gnu.expr.ModuleInfo.find(ModuleInfo.java:206)
	at gnu.expr.ModuleInfo.register(ModuleInfo.java:227)
	at scribble.<init>(scribble.scm)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
	at java.lang.Class.newInstance0(Class.java:308)
	at java.lang.Class.newInstance(Class.java:261)
	at sun.applet.AppletPanel.createApplet(AppletPanel.java:619)
	at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1879)
	at sun.applet.AppletPanel.runLoader(AppletPanel.java:548)
	at sun.applet.AppletPanel.run(AppletPanel.java:299)
	at java.lang.Thread.run(Thread.java:534)Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
	at java.security.AccessController.checkPermission(AccessController.java:401)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
	at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1130)
	at gnu.expr.ModuleManager.<init>(ModuleManager.java:13)
	at gnu.expr.ModuleManager.<clinit>(ModuleManager.java:31)
	... 14 more
Exception: java.lang.ExceptionInInitializerError
"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]