Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. call c# class from Java using JNI

call c# class from Java using JNI

Scheduled Pinned Locked Moved C#
csharpjavavisual-studiohelptutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    G Makesh
    wrote on last edited by
    #1

    i am working with vs 2005 and i want to call a c# class and methods from Java using JNI. kindly help with some example

    D Z 2 Replies Last reply
    0
    • G G Makesh

      i am working with vs 2005 and i want to call a c# class and methods from Java using JNI. kindly help with some example

      D Offline
      D Offline
      duncanmhor
      wrote on last edited by
      #2

      This is more of a Java programming question than a C# one. There is a JNI tutorial here

      "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

      L 1 Reply Last reply
      0
      • D duncanmhor

        This is more of a Java programming question than a C# one. There is a JNI tutorial here

        "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

        L Offline
        L Offline
        Laubi
        wrote on last edited by
        #3

        even if it's the wrong forum.. I don't think JNI is the right choice as JNI calls simple C function and C# is even if its name has only one additional letter quite a bit different. You would have to initialize your .NET Runtime on your own (mscoree etc.). I have some doubts that this is the solution you're looking for. But you might want to check out JNBridgePro!

        1 Reply Last reply
        0
        • G G Makesh

          i am working with vs 2005 and i want to call a c# class and methods from Java using JNI. kindly help with some example

          Z Offline
          Z Offline
          Zamboch
          wrote on last edited by
          #4

          Try http://jni4net.sf.net[^] Opensource, easy, no C++, fast, interprocess.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups