wood burning stoves 2.0*
The moose likes Applets and the fly likes Applet security permission on MAC OS? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet security permission on MAC OS?" Watch "Applet security permission on MAC OS?" New topic
Author

Applet security permission on MAC OS?

Sumeet Gaikwad
Ranch Hand

Joined: Mar 07, 2002
Posts: 37
Hi all,
I am using mozilla browser on MAC OS. I am calling Applet through JavaScript. I write .java.policy file on MAC OS. But at the time of calling the applet is asking for the setting the security permissions.How to set the security permissions on MAC OS?
How do I set the .java.policy file on MAC OS?
Plz give me any idea to get out of the puzzle ??
-Sumeet


Sumeet Gaikwad<br />SCJP, SCWCD<br />-----------------------------------------------------------------------------------<br />Nothing is impossible because it spells... I M Possible !!!
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
hi sumeet
there are two places u can put security options.
1. .java.security in the USER's HOME directory
2. java.security in the java.home/lib/security/java.policy (or the java.home/jre/lib/sercurity/java.policy)
java.home is the directory where u installed java.
i'm not dead sure about the 2nd location as i found two different paths at different reference sites. but i'm sure either it's in JRE/lib/security directory or the simple lib/security (for me it was in jre/lib/security on Linux)...
in short, find out java.security on Mac system as java.security is generally scanned first for security options and that sets options for all the users on the system. if u use USER HOme directory's .java.security file then it applies to only that specific user ( i guess u already knew this).
so if u put ur settings in java.security it should work. i am not a great user of Mac OS so i don't know where it keeps USER's HOME directory etc....so i suggest Brute Force approach
let me know if u r able to find USER's HOME directory on MAC OS and able to put restrictions on .java.security file....
well, one of my friends just told me that all the user's home directories should be under "users" directory in the Mac OS Root directory. so if u r user "YourName" then it should be "::users::YourName" directory (i am neither sure of the file path seperator in Mac bare with me)
regards
maulin.
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
hi
sorry. i made confirm about the file path seperator. its ":" in Mac OS.

regards
maulin
Sumeet Gaikwad
Ranch Hand

Joined: Mar 07, 2002
Posts: 37
Dear Maulin
Thanks for your valuable reply...
I got solved the problem and now checking the post.
But anyway thanks.
on MAC OS the USER'S HOME directory is /Users/systems/
I put the .java.policy file in USER'S HOME directory. and security file in java.home/jre/lib/ext/java.security
But I come to one conclusion that its a very difficult to work on "Java on MAC OS"....
-Sumeet
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Applet security permission on MAC OS?
 
Similar Threads
How can I get an applet to write to a client file
HTML and RMI
ClassNotFound : Open HTTP Connection Failed
Granting SocketPermission in an applet
Applets with JNI (urgent)