Solved

Help !!!!! cabarc refuses to work

Posted on 2000-05-08
3
180 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
Comment Utility

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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
hash value 2 38
bunnyEars challenge 6 62
get weblogic logged in user in java 2 39
Java / Linux and Regular Expressions 11 42
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
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 tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

763 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

12 Experts available now in Live!

Get 1:1 Help Now