Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HotJava in AppletViewer Problems

0 views
Skip to first unread message

Peter Stanski

unread,
Jun 10, 1998, 3:00:00 AM6/10/98
to

HI !

I am a C/C++ turn Java programmer and having some problems
using the HotJava Bean in Appletviewer. I've got it working
fine within the BeanBox (Sun's BDK) designer... can browse
around without problems but when I generate an applet is cool...
but as soon as I try to run the generated applet it applerviewer
complains with the following. It seems like a security problem
but i've set absolutely no restrictions in appletviewer...

check this out below...

E:\JDK-Bdk\beanbox\tmp\myApplet>appletviewer myApplet.html
Unable to initialize bean: sun.applet.AppletSecurityException:
checkpropsaccess

sun.applet.AppletSecurityException: checkpropsaccess
at
sun.applet.AppletSecurity.checkPropertiesAccess(AppletSecurity.java:262)
at java.lang.System.getProperties(System.java:371)
at sunw.hotjava.misc.Globals.initProperties(Globals.java:183)
at sunw.hotjava.misc.Globals.initSystem(Globals.java:523)
at
sunw.hotjava.bean.HotJavaSystemState.<init>(HotJavaSystemState.java:7
3)
at java.beans.Beans.instantiate(Beans.java:128)
at MyApplet.initContents(MyApplet.java:50)
at MyApplet.<init>(MyApplet.java:23)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:462)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:398)
at sun.applet.AppletPanel.run(AppletPanel.java:237)
at java.lang.Thread.run(Thread.java:474)
sun.applet.AppletSecurityException: checkpropsaccess.key
java.lang.Error: trouble initializing contents:
sun.applet.AppletSecurityExcepti
on: checkpropsaccess.key
at MyApplet.<init>(MyApplet.java:26)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:462)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:398)
at sun.applet.AppletPanel.run(AppletPanel.java:237)
at java.lang.Thread.run(Thread.java:474)

Appletviewer starts up.. but the applet is not initialized...
any suggestions appreciations much appreciated!!!

This is probably something really trivial.. learning new
things is such a hassel sometimes!!! 8-(

Thanks
Peter


-----------------------------------------------------
.--.|\ Computer Science and Software Engineering
/ \ Caulfield Campus, Monash University
\_.--._/ Melbourne, Australia Victoria 3145 (Earth)
v Room: C3.07 Ph:+61(0)3 9903 2195 ext 32195
Web: www.ct.monash.edu.au/~pstanski
MS NetMeeting: astval.ct.monash.edu.au

-----------------------------------------------------

0 new messages