[Jprogramming] Calling managed .Net code from J
Alex Rufon
alex_rufon at ist-systems.com
Mon Feb 15 14:27:29 HKT 2010
Hi John,
Please keep us posted. I am interested on this too.
I've called .NET DLL from a VB6 OLE/COM interface but you really had to jump through some hoops like making sure that the .NET class is in the GAC and making the compiler build a COM interface during compile time.
When it worked, I didn't pursue it anymore since it was a one-time project just to fix something until the whole module was replaced with C#.
Thanks.
r/Alex
-----Original Message-----
From: programming-bounces at jsoftware.com [mailto:programming-bounces at jsoftware.com] On Behalf Of John Baker
Sent: Monday, February 15, 2010 12:38 AM
To: Programming forum
Subject: Re: [Jprogramming] Calling managed .Net code from J
Thanks Oleg. I will keep folks posted on how this goes.
On Sat, Feb 13, 2010 at 7:31 AM, Oleg Kobchenko <olegykj at yahoo.com> wrote:
> > From: John Baker <bakerjd99 at gmail.com>
>
> >
> > Using the COM interface it is easy to call J from managed code. Now I am
> > interested in going the other way.
> >
> > Has anyone managed to call a .Net class from a J session. I know this
> can
> > be done but before I spend the time
> > figuring it out for myself I thought I would ask if any brave J'uggler
> out
> > there has been done this path.
>
> Not tried. But it should possible by Hosting CLR (.NET Runtime),
> which is similar to hosting Java JVM
> http://www.jsoftware.com/jwiki/Interfaces/Calling%20Java
>
> Some resources:
>
> Hosting the Common Language Runtime - MSDN
> http://msdn.microsoft.com/en-us/library/aa720129%28VS.71%29.aspx
>
> CLR Hosting APIs - MSDN Magazine, Aug 2006
> http://msdn.microsoft.com/en-us/magazine/cc163567.aspx
>
> Microsoft .NET: Implement a Custom Common Language Runtime Host
> http://msdn.microsoft.com/en-us/magazine/cc301479.aspx
>
> CLR Hosting
> http://community.bartdesmet.net/blogs/bart/archive/2005/07/17/2687.aspx
>
> CLR Hosting Samples
> http://pwlodek.blogspot.com/2008/11/clr-hosting-samples.html
>
> Good luck. This should be exciting.
>
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
John D. Baker
bakerjd99 at gmail.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list