including package name in jni wrapper

Discussion in 'Java' started by Rob, Jun 12, 2004.

  1. Rob

    Rob Guest

    Hi

    I have a c library that I am creating jni wrappers for. The wrappers
    work fine in the default package but I would like to include the functions
    in a named package to avoid any possible conflicts for users that may
    have functions with the same names.

    What is the syntax for including the package name in the wrapper fcn name?

    Is it something like

    Java_com_mycompany_pack1_ClassName_aaFunctionName_1java

    where com.mycompany.pack1 is the package name?

    Rob
     
    Rob, Jun 12, 2004
    #1
    1. Advertising

  2. Rob

    Real Gagnon Guest

    Real Gagnon, Jun 12, 2004
    #2
    1. Advertising

  3. Rob

    Rob Guest

    Thanks for the tip. This link explains it well.

    Rob

    "Real Gagnon" <realgagnon_@_yahooSpamIsBadSstripunderscore.com> wrote in
    message news:Xns9505DB3932D9Brealhowtowwwrgagnonc@140.99.99.130...
    > > Java_com_mycompany_pack1_ClassName_aaFunctionName_1java
    > >
    > > where com.mycompany.pack1 is the package name?

    >
    > Yes.
    > http://www.rgagnon.com/javadetails/java-0348.html
    >
    > Bye.
    > --
    > Real Gagnon from Quebec, Canada
    > * Looking for Java or PB snippets ? Visit Real's How-to
    > * http://www.rgagnon.com/howto.html
     
    Rob, Jun 14, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jim

    JNI wrapper class

    Jim, Sep 11, 2005, in forum: Java
    Replies:
    2
    Views:
    2,188
    Stefan Schulz
    Sep 12, 2005
  2. George P
    Replies:
    3
    Views:
    695
    Alex Martelli
    Sep 11, 2004
  3. laredotornado
    Replies:
    7
    Views:
    4,156
    laredotornado
    Dec 3, 2009
  4. Colby Nyce

    Trouble with JNI wrapper functions

    Colby Nyce, Sep 8, 2011, in forum: Java
    Replies:
    1
    Views:
    238
    Roedy Green
    Sep 8, 2011
  5. Philipp Kraus

    JNI C++ Wrapper

    Philipp Kraus, Sep 30, 2011, in forum: Java
    Replies:
    1
    Views:
    1,560
    Roedy Green
    Oct 10, 2011
Loading...

Share This Page