Solved

Help !!!!! cabarc refuses to work

Posted on 2000-05-08
3
192 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Certificat to iSeries KeyStore 1 31
ejb example issues 3 89
Eclipse Java import and method not resolved 4 135
junit initializtion error 2 22
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

751 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