-
java.lang.UnsatisfiedLinkError: assertPermission Problem
hi
i hav stuck up into this exception canu do smthng 4 this
'i am importing these packages
-----------------------------------------------------------------------
mport com.ms.security.PermissionID;
import com.ms.security.PolicyEngine;
.....
......
........
i have got the path for those packages
now the problem is in these lines(which are in between the code of my applet)...
.....
...........
if(Class.forName("com.ms.security.PolicyEngine") != null)
PolicyEngine.assertPermission(PermissionID.SYSTEM);
............
.....
.......
when i run my applet in appletviewer i get following exceptions
java.lang.UnsatisfiedLinkError: assertPermission
at com.ms.security.PolicyEngine.assertPermission(Native Method)
at bocazas.init(bocazas.java:7164)
at sun.applet.AppletPanel.run(AppletPanel.java:354)
at java.lang.Thread.run(Thread.java:534)
can u help me???
-ashish
-
 Originally Posted by ashishrathore
java.lang.UnsatisfiedLinkError: assertPermission
at com.ms.security.PolicyEngine.assertPermission(Native Method)
at bocazas.init(bocazas.java:7164)
at sun.applet.AppletPanel.run(AppletPanel.java:354)
at java.lang.Thread.run(Thread.java:534)
You should have checked the Java API for this. An UnsatisfiedLinkError is thrown if the JVM is unable to find a native library for a method declared as native
Happiness is good health and a bad memory.
-
same
I hav the same problem. Can you explain a bit more about the solution ?
-
At a certain level in the jvm, all methods connect to the OS through native methods (methods probably written in C/C++) The JVM maintains a path to all the native libraries which contain the native methods. (e.g. look in <JavaInstallDir>/jre/lib/i386). When Java code is compiled and it uses native methods, the JVM will search for the native method in all the native libraries it finds in the path it maintains. If it cannot find the required method, an UnsatisfiedLinkError occurs.
Hope this helps,
Noel
Efficiency is intelligent laziness
-
same
Hello neolob,
Ok I understand it is related with Native libraries after all.
Event I copy relates dlls (OCFPCSC1.DLL, winscard.dll) to all windows and jre\bin directories and copy related jars (pcsc-wrapper-2.0.jar, base-opt.jar and base-core.jar) to all the JREs lib/ext directories.
My smartcardloginapplet.class runs in MSIE default jre, but not with sun java jre and always gives the following error.
The problem might be something different.
java.lang.UnsatisfiedLinkError: assertPermission
at com.ms.security.PolicyEngine.assertPermission(Native Method)
at opencard.opt.ms.MicrosoftSystemAccess.<init> (MicrosoftSystemAccess.java:33)
at SmartLoginApplet.init(SmartLoginApplet.java:50)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
and the jvm.cfg files have :
-client KNOWN
-server KNOWN
-hotspot ALIASED_TO -client
-classic WARN
-native ERROR
-green ERROR
--
Hakan
Similar Threads
-
By Irina in forum ASP.NET
Replies: 0
Last Post: 11-29-2002, 10:47 PM
-
Replies: 0
Last Post: 12-13-2001, 12:06 PM
-
By Roseta in forum VB Classic
Replies: 0
Last Post: 11-14-2001, 03:24 AM
-
By Ayman in forum VB Classic
Replies: 0
Last Post: 04-03-2000, 01:08 AM
-
By Jason Bock in forum VB Classic
Replies: 0
Last Post: 03-21-2000, 06:48 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks