Home > Net >  C # call Java package, an error: "Java. Lang. StdIO" of type initializers throw an excepti
C # call Java package, an error: "Java. Lang. StdIO" of type initializers throw an excepti

Time:11-11

Help:
In c # I call Java packages,
Reference to:
IKVM. Its. Core. DLL
IKVM, Runtime DLL
IKVM. Runtime. JNI. DLL
There is also a packaged good Java package: WsRequestDemo. DLL

But when use out of the error: "Java. Lang. StdIO" of type initializers cause abnormal

Specific as follows:
Untreated System. TypeInitializationException
Message="" Java. Lang. StdIO" of type initializers cause abnormal, "
Source="IKVM. Its Core"
TypeName="Java. Lang. StdIO"
StackTrace:
In Java. Lang. System. Get_out ()
In Java. Lang. Class $3. The run ()
In Java. Lang. Class $3. The run ()
In Java. Security. The AccessController. DoPrivileged (Object, AccessControlContext, CallerID)
In Java. Security. The AccessController. DoPrivileged (PrivilegedAction action, CallerID)
In Java. Lang. Class. CheckInitted ()
In Java. Lang. Class. PrivateGetDeclaredConstructors (Boolean)
In Java. Lang. Class. GetConstructor0 (Class [], Int32)
In Java. Lang. Class. NewInstance0 (CallerID)
In Java. Lang. Class. NewInstance (CallerID)
In the sun. Security. Jca. ProviderConfig $2. The run ()
In the sun. Security. Jca. ProviderConfig $2. The run ()
In Java. Security. The AccessController. DoPrivileged (Object, AccessControlContext, CallerID)
In Java. Security. The AccessController. DoPrivileged (PrivilegedAction action, CallerID)
In the sun. Security. Jca. ProviderConfig. DoLoadProvider ()
In the sun. Security. Jca. ProviderConfig. GetProvider ()
In the sun. Security. Jca. ProviderList. GetProvider (Int32)
In the sun. Security. Jca. ProviderList. GetService (String type, String name)
In the sun. Security. Jca. GetInstance. GetInstance (String type, Class clazz, String algorithm)
In Java. Security. Security. GetImpl (String, String, String)
In Java. Security. MessageDigest. GetInstance (String algorithm)
In com. ZHT. WsRequestDemo. GetMessageDigest (String str1, String str2)
In WindowsFormsApplication1. Form1. Button1_Click (Object sender, EventArgs e) location C: \ Documents and Settings \ Administrator \ My Documents \ Visual Studio 2008 \ projects \ WindowsFormsApplication1 \ WindowsFormsApplication1 \ Form1 cs: line number 28
In the System. Windows. Forms. Control. The OnClick (EventArgs e)
In the System. Windows. Forms. The Button. The OnClick (EventArgs e)
In the System. Windows. Forms. Button. onm ouseUp (MouseEventArgs mevent)
In the System. Windows. Forms. Control. WmMouseUp (Message& M, MouseButtons button, Int32 on)
In the System. Windows. Forms. Control. WndProc (Message& M)
In the System. Windows. Forms. ButtonBase. WndProc (Message& M)
In the System. Windows. Forms. Button. WndProc (Message& M)
In the System. Windows. Forms. Control. ControlNativeWindow. OnMessage (Message& M)
In the System. Windows. Forms. Control. ControlNativeWindow. WndProc (Message& M)
In the System. Windows. Forms. NativeWindow. DebuggableCallback (IntPtr hWnd, Int32 MSG, IntPtr wparam, IntPtr lparam)
In the System. Windows. Forms. UnsafeNativeMethods. DispatchMessageW (MSG& MSG)
On the System.Windows.Forms.Application.Com ponentManager. System. Windows. Forms. UnsafeNativeMethods. IMsoComponentManager. FPushMessageLoop (Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
In the System. Windows. Forms. Application. ThreadContext. RunMessageLoopInner (Int32 reason, ApplicationContext context)
In the System. Windows. Forms. Application. ThreadContext. RunMessageLoop (Int32 reason, ApplicationContext context)
In the System. Windows. Forms. Application. The Run (Form mainForm)
In WindowsFormsApplication1. The Program. The Main () location C: \ Documents and Settings \ Administrator \ My Documents \ Visual Studio 2008 \ projects \ WindowsFormsApplication1 \ WindowsFormsApplication1 \ Program cs: line number 18
In the System. The AppDomain. _nExecuteAssembly (Assembly Assembly, String [] args)
In the System. The AppDomain. ExecuteAssembly (String assemblyFile, Evidence assemblySecurity, String [] args)
In Microsoft. VisualStudio. HostingProcess. HostProc. RunUsersAssembly ()
In the System. The Threading. ThreadHelper. ThreadStart_Context (Object state)
In the System. The Threading. -- an optional ExecutionContext. Run (-- an optional ExecutionContext -- an optional ExecutionContext, ContextCallback callback, the Object state)
In the System. The Threading. ThreadHelper. ThreadStart ()
InnerException: System. IO. FileNotFoundException
Message="failed to load file or assembly" IKVM. Its. Util, Version=7.2.4630.5, Culture=neutral, PublicKeyToken=13235 d27fcbfff58 "or one of its dependencies, the system cannot find the specified file,"
Source="IKVM. Its Core"
FileName="IKVM. Its. Util, Version=7.2.4630.5, Culture=neutral, PublicKeyToken=13235 d27fcbfff58"
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  •  Tags:  
  • C#
  • Related