[Bluej-discuss] Applets

Michael Kölling M.Kolling at kent.ac.uk
Sun Feb 18 15:19:05 GMT 2007


Hi Ashrak,

It seems that you use the SuM library in your program (via an  
'import' command). Unfortunately, access right to libraries from  
applets are a tricky problem. And even worse, the rules are quite  
different between web browsers and the applet viewer.

As a first try, you should try to run it in a web browser, such as  
Firefox.

Regards,

Michael


On 8 Feb 2007, at 18:46, Jakub Šimon wrote:

> Hello,
>
> I learn Java in BlueJ for a half year in the school. But I'm  
> quicker as most of my classmates, so i asked our teacher to help  
> me, how to make an applet (we use SuM libs, these are libraries for  
> graphics). He didn't know, so I had to read the tutorial. Firstly i  
> made an standalone application (the .jar file) and there were no  
> problems, so i went further and i wanted to make an applet, i made  
> new class with name: Programm (i'm in germany now), type: applet, i  
> made all the changes described in tutorial..and then when i want to  
> save it as applet (after the compilation) and see it in Applet  
> viewer I get a problem: exception: acces denied 
> ( java.io.FilePermission \C:\BlueJ\lib\userlib\SuMEreignis.jar).  
> But..I son't use SuM Ereignis, how can I get rid of this problem  
> and make applet ready?
>
> I know maybe it's newbie question, but u tried almost  
> everything...so i hope someone knows answer for this question..
>
> Sincerely,
> Ashrak
>
> P.S.: I'm sorry for bad English, but I'm not a native speaker (I  
> come from Czech Republic at the being at the school in Germany)
> _______________________________________________
> mailing list bluej-discuss at bluej.org
> To unsubscribe or change your preferences, go to
> http://lists.bluej.org/mailman/listinfo/bluej-discuss



More information about the bluej-discuss mailing list