Exception in thread "main" System.Reflection.ReflectionTypeLoadException
794 views
Skip to first unread message
Aruna
unread,
Aug 6, 2010, 4:10:21 AM8/6/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jni4net
Hi
I have written a java class from i am trying to load a c# project dll
using Bridge.LoadAndRegisterAssemblyFrom(asem..) and execute one of
the methods in c# class.I am getting the following error
Exception in thread "main"
System.Reflection.ReflectionTypeLoadException: Unable to load one or
more of the requested types. Retrieve the LoaderExceptions property
for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at net.sf.jni4net.utils.Registry.RegisterAssembly(Assembly
assembly, Boolean bindJVM)
at net.sf.jni4net.Bridge.RegisterAssembly(Assembly assembly)
at net.sf.jni4net.Bridge.LoadAndRegisterAssemblyFrom(File
assemblyFile)
at net.sf.jni4net.__Bridge.LoadAndRegisterAssemblyFrom3(IntPtr
__envp, JniLocalHandle __class, JniLocalHandle assemblyFile)
at net.sf.jni4net.Bridge.LoadAndRegisterAssemblyFrom(Native Method)
at Program1.main(Program1.java:48)
I am using .net framework 4.0
Can anyone help on this?
Pavel Šavara
unread,
Aug 8, 2010, 5:12:53 PM8/8/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jni...@googlegroups.com
I guess you start the application in directory which don't have all DLLs(dependencies) in it.