Solved

Help !!!!! cabarc refuses to work

Posted on 2000-05-08
3
184 Views
Last Modified: 2007-12-19
I have an applet in which am using Java 2D API functions and have granted the file read permission by making a .cab file. Now to execute this applet under IE4.0 I converted it's HTML file using HTMLConverter that Sun provides. Now I tried to execute it under IE4.0, 2D API functions work properly but it is refusing to grant the file read permission. Please help
0
Comment
Question by:ganesht
  • 2
3 Comments
 

Accepted Solution

by:
Blob earned 50 total points
ID: 2800660

Have you signed the Cab-Arc with the Signcode-Tool?

example for signing new CAB-Archive

signcode -j javasign.dll  -jp ..\JavaPerm.ini -spc ..\Development.spc -v ..\Development.pvk  UserLogin.cab

Get your Applet the Permisions?

try {
  if (Class.forName("com.ms.security.PolicyEngine") != null) {  
      PolicyEngine.assertPermission(PermissionID.FILEIO);
      PolicyEngine.assertPermission(PermissionID.NETIO);  
      PolicyEngine.assertPermission(PermissionID.PROPERTY);
  }
} catch (Throwable cnfe) {
 .....
}
0
 

Author Comment

by:ganesht
ID: 2804206
Dear Blob Thanks for your suggestion but the fraction of code you that you have given here that is there already in my program still it doesn,t asks for the permissions.
Second Thing I came to know that it dosen't takes the cab file at all B'cause I deleted all the class files in the directory where I have kept the .cab file but it show's an error "Class not found" Please try some other stuff.
0
 

Expert Comment

by:Blob
ID: 2825060
Wait a moment,
you use the Java Plugin from Sun with the IE?
Are you sure, that the Plugin uses the same Permision-Concepts with the MS-VM? try Sun's Permision and signing Model...
 

Chris alias Blob
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Android studio getdrawable(int) is deprecated 4 36
Exception after setting jdbc session management 2 52
eclipse formatting 6 70
print map entry 34 54
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now