Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call J# from C#

Status
Not open for further replies.

rveel

Programmer
May 8, 2000
5
US
I need to call some J# routines from C#. Can anyone provide a simple example project? For example, a project that displays:

"Hello World - from C# code"
"Hello World - from J# code"

Thanks
 
I don't have any source for you (don't use J#), but you should be able to set a reference in your C# project to your J# assembly, and then put a "using MyJSharpAssemblyName;" at the top of your C# code. Then you can access all your J# functions just like they were local.

Same applies for doing the reverse - set a reference to your C# assembly in your J# project, do the J# equivalent of "using MyCSharpAssembly" at the top of your J# code, and you're there. You get full Intellisense and everything.

Chip H.
 
Thanks, that provided the clues I needed. I created a C# project, added a J# class library project to the same solution, set a reference in my C# project to my J# project using the GUI and added "using myJsharpClasses" to my C# source.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top