Calling routines from static c/c++ library

I have a static library (*.lib) written in c/c++, which contains several routines I would like to use out of a java project. Is this possible and how to do it?
Thanks
Raku

Thanks, that's what I suggested. Are there any hints, whre I can get a clue on where to look in the jni manuals or how to do it at least in general?

Similar Messages

  • Problem with calling dispose() from static method

    I have one class, where I have this:
    EditorWindow.disposeWindow();and class EditorWindow, where I have static method
    protected static void disposeWindow() {
        dispose();
    }But, dispose() cant be called from static method. Is there any way to hide or close the EditorWindow window?

    kaneeec wrote:
    I dont have references of these windows, because it would be too difficult. They are created just by new Window().setVisible(true);It's not difficult:
    Window w = new Window();
    w.setVisible(true);Now you have a reference (w) to your window that you can later call dispose() on.
    w.dispose();dispose() isn't a static method, so you have no choice but to call it on a specific instance.

  • Calling commands from a .SO AIX library

    Hello all,
    I need to call commands from a .SO file that is an AIX library like Windows DLLs.
    Can I use the call system command to do this?
    Have anyone already faced this situation?
    Regards,
    Mauricio

    Hi Santha,
    Similar questions to yours have already been asked (and answered) several
    times previously on this forum:
    http://forums.oracle.com/forums/find.jsp?t=notepad&key=100191&val=Products%3ADatabase%3AJVM
    Hope this helps you.
    Good Luck,
    Avi.

  • Calling routine from SO10

    Hi All,
        While calling a routine from SO10, both input table and output table are empty, I have used in following way..
    /: DEFINE &PER& = &PTXT1-PERNR&
    /: PERFORM ADDRESS IN PROGRAM ZHR_OFFER
    /: USING PER
    /: CHANGING &P0001-PERNR&
    /: CHANGING &STRAS&
    /: ENDPERFORM
    In routine (ABAP)
    FORM ADDRESS tables in_tab structure itcsy out_tab structure itcsy.
      Data:   v_name2 like p0006-name2,  " C/O
              v_stras like p0006-stras.  " Street/House no
      read table in_tab index 1.
      if sy-subrc = 0.
    EndForm.
    Here both in_tab and out_tab are empty while debugging i found that (in std program, which is calling routine)
    perform (co_perform-form) in program (co_perform-program)
                              tables co_sym_using
                                     co_set_symbols
    Here co_perform-form is filled with ADDRESS and
         co_perform-program is filled with ZHR_OFFER, but
         co_sym_using, co_set_symbols tables are empty.
    Since these tables are empty, values are not getting passed from SO10 to ABAP, Your input on this please.
    Thanks,

    Hi,
    Try this out ....
    In Routine:-
    <b>/: PERFORM ADDRESS IN PROGRAM ZHR_OFFER
    /: USING &PTXT1-PERNR&
    /: CHANGING &P0001-PERNR&
    /: CHANGING &STRAS&
    /: ENDPERFORM</b>
    In ABAP Program:-
    FORM ADDRESS tables in_tab structure itcsy out_tab structure itcsy.
    Data: v_name2 like p0006-name2, " C/O
    v_stras like p0006-stras. " Street/House no
    read table in_tab index 1.
    if sy-subrc = 0.
    pass the values to the fields
    Endif.
    read table out_tab index 1.
    out-tab-value = 'pass the value'.
    <b>MODIFY OUT_PAR INDEX SY-TABIX.</b>
    EndForm.
    Regards
    Sudheer

  • Using a function from static context..

    Well I have a command line app; and it has a public static void main. Now, I made a function that writes to a file, and tried calling it from the main section, and it got mad saying I can't call it from static context. Anyway to allow it to be called from both static and non static contexts?

    otherwise create object of the class, from that object you can call a method

  • How to call external Perl routines from Pl/SQL - Urgent

    Available software in the Test Environment:
    1. Sun Unix 2.8
    2. Oracle 8.1.7 ( 8i)
    3. Perl 5
    Iam trying to call/execute perl scripts from PL/SQL using the DEMO_RDBMS.mk. I am able to call C scripts from PL/SQL, but actually want to call Perl scripts.
    The steps followed for for C are -
    1. Create and compile a simple C program to execute a unix command (eg., touch a file).
    2. Make a shared library of the above compiled program (object), i.e., load the compiled object module into a dynamic load library.
    3. Declare the above library in Oracle using SQL*Plus.
    4. Define a PL/SQL function or procedure to call the external routine.
    5. Test the external routine.
    The above steps run good for a C program, but step 2 fails when run for a Perl script.
    When I tried to use the following command for step 2 -
    make -f $ORACLE_HOME/rdbms/demo/demo_rdbms.mk extproc_callback \
    SHARED_LIBNAME=cmd_lib.so \
    OBJS=tst_cmd.pl
    got the following error -
    ld: fatal: file tst_cmd.pl: unknown file type.
    ld: fatal: File processing errors. No output written t cmd_lib.so
    *** Error code 1
    This gives me an indication that demo_rdbms.mk does not understand/interpret Perl scripts. Going through the demo_rdbms.mk suggests the same.
    My questions is - How do we call external Perl scripts/routines from PL/SQL ??
    Do I have to get a different version of "demo_rdbms.mk" ?
    PS: The perl scripts used above (tst_cmd.pl) is error free and works as intended in the unix environment.

    Iam trying to call/execute perl scripts from PL/SQL using the DEMO_RDBMS.mk. I am able to call C scripts from PL/SQL, but actually want to call Perl scripts. Well, C is a "compiler" language and Perl is interpreted. In a sense, C is not "scripts".
    When I tried to use the following command for step 2 -
    make -f $ORACLE_HOME/rdbms/demo/demo_rdbms.mk extproc_callback \
    SHARED_LIBNAME=cmd_lib.so \
    OBJS=tst_cmd.pl
    got the following error -
    ld: fatal: file tst_cmd.pl: unknown file type.
    ld: fatal: File processing errors. No output written t cmd_lib.soI guess this compiles an extproc "stub" with your object file, generating an external procedure. So the object file really needs to be an object file :-)
    My questions is - How do we call external Perl scripts/routines from PL/SQL ??I'd guess you need an embedded Perl interpreter in the external procedure.
    Not much help though I'm afraid :-/
    Cheers
    Fredrik

  • Cannot call SPSOLVE routines from Fortran 95

    I am not able to call the SPSOLVE routines from fortran 95. I am using OPENSUSE and also OPENSOLARIS.
    I also tried with the example 6-1 (example_1call.f) from the Sun Performance Library user guide.
    I compiled the program with the .f extension (so f77 format) and it works.
    I then transformed the program to an .f95 program and also added USE SUNPERF under program.
    I then typed
    f95 -dalign example.f95 -xlic_lib=sunperf
    and I received
    example.f95:(.text+0x2af): undefined reference to `dgssfs_'
    example.f95:(.text+0x2d7): undefined reference to `dgssda_'
    I would be grateful if somebody could help me.
    Thank you.
    Victor

    The download URL is http://developers.sun.com/sunstudio/downloads/express/index.jsp
    In step #1, type in your e-mail address and click "Download Now"
    You are then taken to a "Download Options" page. Choose Option 2 which is "Download Tarfile Installer"
    This allows non-root access to install. And you can install anywhere you wish. So you don't have to
    un-install your Studio 12 version.

  • Calling a java static method from javascript

    I am running into issue while calling a java static method with a parameter from javascript. I am getting the following error. Any help is greatly appreciated.
    Thx
    An error occurred at line: 103 in the jsp file: /jnlpLaunch.jsp
    pfProjectId cannot be resolved to a variable
    =================================================
    // Java static method with one parameter
    <%!
    public static void CreateJnlpFile(String pfProjectId)
    %>
    //Script that calls java static method
    <script language="javascript" type="text/javascript">
    var pfProjectId = "proj1057";
    // Here I am calling java method
    <%CreateJnlpFile(pfProjectId);%>
    </script>
    ===================================================
    Edited by: 878645 on Mar 6, 2012 11:30 PM

    Thanks, Got what you are telling. Right now I have one jsp file which is setting the parameter 'pfProjectId' and in another .jsp I am retrieving it. But I am getting null valuue
    for the variable. I am wondering why I am getting null value in the second jsp page?.
    Thx
    ====================================================================
    <script language="javascript" type="text/javascript">
    // Setting parameter pfProjectId
    var pfProjectId = "proj1057";
    request.setParameter("pfProjectId", "pfProjectId");
    </script>
    // Using Button post to call a .jsp that creates jnlp file
    <form method=post action="CreateJnlpFile.jsp">
    <input type="submit" value="Create JNLP File">
    </form>
    //Contents of second .jsp file CreateJNLPFile.jsp
    String pfProjectId = request.getParameter("pfProjectId ");
    System.out.println( "In CreateJnlpFile.jsp pfProjectId " + pfProjectId );
    =======================================================

  • Calling PopUpManager from a class in a library

    I have a class for logins that I have put in a Flex Library
    Project.
    Part of the login is a popup form(mxml) I have created and is
    in the library.
    The problem I have is this line:
    loginPopUp =
    LoginForm(PopUpManager.createPopUp(this,LoginForm,true));
    The error I get is:
    1067: Implicit coercion of a value of type
    dataManagers:LoginManager to an unrelated type
    flash.display:DisplayObject.
    The parent “this” is no good since its parent
    should be the application that called the logon.
    Can I reference the caller from the LoginManager class I
    created to feed to popupmanager as the parent for the popup?
    The code in the app using the llibray that relates to this
    (to save space) is:
    import dataManagers.LoginManager
    public var lm:LoginManager = new LoginManager();
    lm.initServices();
    //LoginManager.as
    package theLoginManager {
    import flash.events.Event;
    import mx.managers.PopUpManager;
    public class LoginManager {
    import LibraryViews.Login.LoginForm;
    public var loginPopUp:LoginForm;
    public function initServices() : void
    Alert.show("Login start");
    appCFC = new RemoteObject("ColdFusion");
    appCFC.source = "CFC.Users.usersGateway";
    appCFC.addEventListener(FaultEvent.FAULT, server_fault);
    appCFC.init.addEventListener(ResultEvent.RESULT,init_result);
    appCFC.getById.addEventListener(ResultEvent.RESULT,getById_result);
    displayLogin()
    private function displayLogin():void{
    loginPopUp =
    LoginForm(PopUpManager.createPopUp(this,LoginForm,true));//THIS IS
    THE PROBLEM LINE
    loginPopUp.addEventListener("loginSuccessful",
    removeLoginPopup);
    //Removes login form
    private function removeLoginPopup(event:Event):void{
    PopUpManager.removePopUp(loginPopUp);
    }//End Class
    }//End Package
    //LoginForm.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:TitleWindow xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Form width="100%" height="100%"
    defaultButton="{loginBTN}">
    <mx:FormItem width="100%" label="Username"
    required="true">
    <mx:TextInput id="email"
    width="175" text="mltv"/>
    </mx:FormItem>
    <mx:FormItem width="100%" label="Password"
    required="true">
    <mx:TextInput id="password"
    displayAsPassword="true"
    width="175" text="nuffer"/>
    </mx:FormItem>
    <mx:VBox width="100%" horizontalAlign="center">
    <mx:Button id="loginBTN" label="Login"
    click="authenticateUser();" fillColors="[#80ff00, #80ff00]"/>
    </mx:VBox>
    </mx:Form>
    </mx:TitleWindow>

    I solved it by passing the parent when I called it from the
    parent project:
    lm.initServices(this);
    and then created a var in the .as file:
    private var theCallingParent:DisplayObject;
    theCallingParent = theParent;
    Then used that variable when I called the popup:
    loginPopUp =
    LoginForm(PopUpManager.createPopUp(theCallingParent,LoginForm,true));
    Sorry to clog up the board.

  • Problem calling simplebutton from library

    Hi guys,
    I'd like to ask for your assistance. I have a problem calling
    SimpleButton from library. I already checked the Linkage:Export for
    actionscript but still an error appear "Call to a possibly
    undefined method OkBtn". I'm just wondering because this method
    works on my MovieClips except for SimpleButtons. Is there another
    way to call SimpleButtons?
    Here's my code calling MovieClip:
    var mc:MovieClip = new ourProduct();
    and same in calling my SimpleButton:
    var myOkBtn:SimpleButton = new OkBtn();
    please help.
    Thank you very much

    Hi again,
    Since I could not call my SimpleButton inside the library, I
    was thinking of putting my button inside the movieclip and call
    that clip inside my library.
    On my stage, I called
    underConstructionPane() movieclip. This
    underConstructionPane contains
    myOkBtn which previously I wanted to call but as a work
    around, I just put it inside
    underConstructionPane movieclip with instance name of
    okBtn. I added eventHandler on
    okBtn which supposed to call
    showHome() function outside
    underConstructionPane.
    showHome() was declared on the stage or root (I don't know
    the correct term. hehehe
    sorry.) but I don't know how to call that function.
    I tried this:
    var home = new showHome();
    but it won't work.
    Please help me
    Thank you.

  • Is it possible to call Java routines from FMS?

    Say I have a game package, most of which
    are written in Java. I am thinking
    to leave the core logics in Java, but
    change the user interface into Flash,
    and serve it over FMS. Now is it
    possible to call Java routines from
    FMS?
    I'd appreciate any suggestions.

    Yes! You can use SOAP(or XML-RPC) to call Java routines.
    Relevant link:
    http://www.adobe.com/devnet/flashmediaserver/articles/fms_web_services_05.html
    Btw, does anyone know if there is XML-RPC package for
    FMS?

  • DLL calling a subsidiary static library

    I've built a DLL using labwindows that calls a subsidiary static library. I've added a step in Test Stand that calls this DLL.  On my development station all is good.  The subsidiary library is called.  But, on a deployed station I keep getting a "Cannot load DLL".
    According to the reference manual, I can preload the subsidiary librarys by using the CVI adapter.  I get the same error on my deployed station...
    Solved!
    Go to Solution.

    You get an error "Could not load a DLL" when one of the dependencies is missing.
    Please check it this way :
    Download free dependency walker --- http://www.dependencywalker.com/
    Select the DLL ( deployed machine).
    It will show which dependency component is missing in the deployed machine.
    For CVI..
    Since you are using a static libarary - did you include it in the build when you build the project?
    It should be embed within your DLL. ( using add files to DLL option in the CVI target settings).
    Hope this helps.

  • Call an ABAP routine from Web Template

    Hi Gurus,
    I Need to call an ABAP routine from a Web template or export value to memory to use in the variable exit.
    is it possible ?
    Thanks.
    Rodrigo

    Hi Ankit,
    take a look:
    /thread/725385 [original link is broken]
    WAD and ABAP
    How to call a ABAP or ABAP Class from the WEB
    /people/kai.wachter/blog/2008/03/11/how-to-write-own-items-in-bi-70-java-runtime
    Regards
    Andreas

  • I cannot log onto the App Store, the page appears when I call it from the dock or the Apple menu. I can call the log-in box from the menu bar, but on signing in the spinning icon just keeps spinning,(not the beachball). Any suggestions? Using 10.6.7 and u

    I cannot log onto the App Store, the page appears when I call it from the dock or the Apple menu and I can call the log-in box from the menu bar, but on signing in the spinning icon just keeps spinning,(not the beachball).  Using 10.6.7 and up-to-date on all software. Any suggestions?

    Could be a third party app preventing you from being able to login.
    Mac App Store: Sign in sheet does not appear, or does not accept typed text
    If it's not a third party issue, follow the instructions here.
    Quit the MAS if it's open.
    Open a Finder window. Select your Home folder in the Sidebar on the left then open the Library folder then the Caches folder.
    Move the com.apple.appstore and the com.apple.storeagent files from the Caches folder to the Trash
    From the same Library folder open the Preferences folder.
    Move these files Preferences folder to the Trash: com.apple.appstore.plist and com.apple.storeagent.plist
    Same Library folder open the Cookies folder. Move the com.apple.appstore.plist file from the Cookies folder to the Trash.
    Relaunch the MAS.

  • How come I can't add a song to my playlists in itunes match? Is it me or itunes match? It keeps on coming up with a message " iCloud playlists can only contain songs from your iCloud music library. If you continue, the playlist will be removed from iCloud

    How come I can't add a song to my playlists in itunes match? Is it me or itunes match? It keeps on coming up with a message " iCloud playlists can only contain songs from your iCloud music library. If you continue, the playlist will be removed from iCloud and will only be available on this computer"?
    You must surely be able to add and subtract songs on specific playlist?

    I fixed this issue (with help from tech support) and it involved several things.
    After adding a song to iTunes, right-click on the song in iTunes and select "Update iTunes Match."
    OR go to the iTunes menu-->Store-->Update iTunes Match.
    Maybe that's the reason, it just hadn't updated to the cloud.
    OR maybe it's not a high-enough bitrate file.   This happens to me because most of my tunes are home-recorded.
    Sometimes converting to .mp3 or Create AAC version might work. (You do this with a right-click in iTunes, and then you will want to remove the original file from iTunes.)
    There is an iTunes Preferences setting, under General Preferences called Import Settings.  Try setting it to AAC Encoder and iTunes Plus.   That (I think) causes imports to be slightly better quality.
    Good luck!  The tech support person at Apple is requesting that a knowlege-base article be written about this.

Maybe you are looking for

  • Select * from {tablename}  : invalid table name error

    Hi, I want to get data from a table and the table should be passed at runtime from selecting a table from the drop down list.In case of insertion of values I am getting no errors.But when I pass the table name as an argument I am getting invalid tabl

  • Crystal Reports setup problem (?)

    Hello, I have recently taken over the role of creating/updating our Crystal Reports and have of course installed the software on my PC just as is explained in the installation guide and have set up the ODBC datalink. I decided to leave it installed o

  • Compile forms error because using rank function

    Hi, Oracle Form 9i don't known rank function in my SQL statement. When compile forms, it alerts err message: "Encountered the symbol "(" when expecting one ..." code: select * from ( select group_id, acct_no, acct_desc, rank() over(order by acct_no d

  • Hard stuttering occurring in H.264 renders out of AE CS5

    Hi There, This problem just started ocurring, and I'm not sure how to troubleshoot the problem.  It may be related to some OSX upgrade, but it is incredibly annoying.  I have a 60 second animation with most of the source footage being Targa sequences

  • Meeting Place 7.0 Audio Blade

    Hi - We are installing Meeting Place 7.0.2.14 with an IPVC3515-MCU for Audio/Video blade running software version 5.7.0.0.21. We can route and web to the IPVC directly, and all status for the MCU/EMP are fine. When we try to add the MCU under resourc