Solved

Help !!!!! cabarc refuses to work

Posted on 2000-05-08
3
196 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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…
This video teaches viewers about errors in exception handling.
Suggested Courses

624 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