RH8: Java Src to C++ Shared Libs

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike - EMAIL IGNORED

    RH8: Java Src to C++ Shared Libs

    I have a C++ Red Hat 8.0 program that will need
    to use some utilities written in Java. I would
    like to a generate shared library from the Java
    code that will be linked into the C++ program
    so that everything runs in one process.
    Can this be done? Where do I begin?

    Thanks in advance,
    Mike.
  • Boris Tabenkin

    #2
    Re: RH8: Java Src to C++ Shared Libs

    Mike - EMAIL IGNORED wrote:
    [color=blue]
    > I have a C++ Red Hat 8.0 program that will need
    > to use some utilities written in Java. I would
    > like to a generate shared library from the Java
    > code that will be linked into the C++ program
    > so that everything runs in one process.
    > Can this be done? Where do I begin?
    >
    > Thanks in advance,
    > Mike.[/color]

    Calling Java from C++ is easy using JNI, wile not as easy as calling C++
    from java basically you can load the jvm.dll (or libjvm.so on
    UNIX/Linux) and make calls into it. Look on Sun's web site for a JNI
    tutorial.

    Comment

    • @  ya h o o.c o m

      #3
      Re: RH8: Java Src to C++ Shared Libs

      Mike - EMAIL IGNORED wrote:
      [color=blue]
      > I have a C++ Red Hat 8.0 program that will need
      > to use some utilities written in Java. I would
      > like to a generate shared library from the Java
      > code that will be linked into the C++ program
      > so that everything runs in one process.
      > Can this be done? Where do I begin?
      >
      > Thanks in advance,
      > Mike.[/color]

      Comment

      Working...