This has taken me a little while to work out. The information is out there but not in an easy to digest way. If you want to load a .NET class in Java via Class.forName you need the Assembly Qualified Name. That is
"Namespace.Classname, Assembly, Version, Culture, PublicKeyToken"
The simplest way to get this is via
typeof(Namespace.Classname).AssemblyQualifiedName
No comments:
Post a Comment