How do run the jni in linux enviroment??

I run the HelloWorld sample in linux
but I stock in load the share library!
When I type this command as following:
cc -G -I/usr/local/java/include -I/usr/local/java/include/linux \
HelloWorldImp.c -o libhello.so
there are error message like this :
unrecognized option '-G'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o:In function '_start':
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18):
undefined reference to 'main'
can you help me solve the problem?

gcc -I/usr/lib/java-1.3/include -I/usr/lib/java-1.3/include/linux \
     -fPIC -g -c -Wall HelloWorldImp.c
gcc -shared -Wl,-soname,libhello.so -o libhello.so HelloWorldImp.o
when you call the library in java
System.loadLibrary("hello");

Similar Messages

  • How to run the Config tool ?

    we are on Linux running Essbase 11.1.1.3 - can anyone tell me how to run the Config tool ?

    Hi,
    Try ./<hyperionhome>/common/config/9.5.0.0/configtool.sh
    More information available at :- http://download.oracle.com/docs/cd/E12825_01/epm.111/epm_install/ch04s05.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to run the paper layout & web layout?

    Hi,
    I have 10gR2 application server (Linux). A report was created in Reports 6i, now i opened the same in 10g and compiled in my local machine(development pc with windows xp).
    question 1
    In the development pc, i can run the paper layout but the same cant in web layout.
    1. How to run the weblayout?
    question 2
    Now my application is running in&as web enabled. A menu calling a report ,that i want to run as paper layout, is it possible in web enable mode? Otherwise i have to run as web layout.
    please guide me.
    Kanish

    Thanks for the advice.
    I am trying to run any iViews that connect to the R/3 back end.  I have read that you have to first connect to the SLD, and then set up the JCO connections.  Correct?
    I have got the SLD running, but I can't connect to it.  I have supplied the required SLD Data Supplier information in the Content Administrator. 
    In the Visual Administrator, under the SLD Data Supplier, I enter the Host, Port, User, and Password, but when I hit the Trigger Data button I get an error saying "Operation Failed!  Failed to collect SLD data.  Failed to send HTTP data: 401: Unauthorized.  Please check if the target SLD system is available and the SLD bridge is started there."
    Any help?

  • Verifying JVM problem and how to delete the jre on linux

    I donot know is this the correct forum for this message or not but could you please help me.
    I had first installed jre-1_5_0_07-linux-i586.bin on my Fedora. Then when I tried to installed sjsas_pe-8_2_2005Q2-nb-5_0-fcs-bin-linux.bin
    The wizard asked me where the java sdk was or give it the path of the java. Because I had not yet installed jsdk then (Although I tried to give the path of jre).
    Now I have installed jdk-1_5_0_08-linux-i586.bin but when I started to install sjsas_pe-8_2_2005Q2-nb-5_0-fcs-bin-linux.bin it show that it had started the wizard on the first line and then it display that varyfing JVM and with that it ends.
    The same thing happens when I tried to install netbeans-5_0-linux.bin
    So First how can I install them and second can you please tell me how can I uninstall jre from the system (is there some procedure that I had to follow or I can just simply delete the jre (jre1.5.0_07) folder.
    Adeel Raza

    We are on r12, i have got the request to delete back-dated concurrent request "Purge Concurrent Request and/or Manager Data', but this request doesn't delete physical file (Log File, Out Put) from server side & increasing space , Please share any program which delete the physical file on server side.Please see these docs.
    Purge Concurrent Requests/Manager Data, FNDCPPUR, Not Removing Files From Filesystem [ID 1060707.1]
    Not All Files Are Purged [ID 1124774.1]
    Concurrent Processing - How To Run the Purge Concurrent Request FNDCPPUR, Which Tables Are Purged, And Known Issues Like Files Are Not Deleted From File System or Slow Performance [ID 822368.1]
    Concurrent Processing - Purge Concurrent Request and/or Manager Data Program (FNDCPPUR) [ID 104282.1]
    Thanks,
    Hussein

  • How to run the form that is only installed on a PC and not using a server?

    Hi
    I am new to Oracle and have taken the forms class. But I do not understand how to run the form from my PC using XP windows. (Do not have access to a server).
    I have started the OC4J, made sure the listener was started, compiled the form and then when I run it, it automatically goes to the HTTP:
    ERROR: res://ieframe.dll/acr_depnx_error.htm#,http://kevin:8889/forms/frmservle
    I connected to the database correctly. I can process a report and it does nor try to access the internet. My only issue is running the form. I verified it compiled.
    Sorry for a basic question. Could someone please help, I tried reviewing other questions, but not sure if they are connecting to a server or not.
    I see webutil but is it required if I don't have a server? Thank you in advance.

    Regardless of the version, it appears that you may not have configured the Builder. Do the following:
    1. Open the Builder
    2. From the menu, select Edit > Preferences > Runtime
    3. In the box labeled "Application Server URL:", enter a local URL needed to run a form OR click the button labeled "Reset to Default". If you decide to manually enter a value, it would looks something like this:
    http://localhost:8889/forms/frmservlet
    4. In the field labeled "Web Browser Location:", enter the path and executable to your preferred browser. So for example if IE is your browser of choice the entry would most likely look like this:
    C:\Program Files\Internet Explorer\IEXPLORE.EXE
    5. Click on OK and retest.
    By the way, you can manually enter a URL in the browser. Clicking the RunForm button from the Builder is strictly optional. To run the "test" form directly from the browser enter the following into the browser's address field:
    http://localhost:8889/forms/frmservlet?form=test
    More information about Forms can be found on OTN:
    http://www.oracle.com/technology/products/forms/index.html

  • How to run the ejb project in j2ee server

    How to run the EJB project.
    I give like
    java conveterClient converterClient.jar
    here conveterClient is class file name and converterClient.jar is deployed file
    like wise i give some exception is come
    give some help pls friends

    Navigate to the "DBOrders" module in the catalog, right click on the "ORDERS" database below and click "Export Schema Stucture". That will produce a file containing the DML needed to create the database

  • HOw to run the Applet in dos mode

    how to run the applet in Command Prompt(DOS).
    I have save this in directory D/vijay/javap/A.java and my JDK is in C drive.
    Plz send me reply as soon as possible.
    My code is :-
    import java.applet.*;
    import java.awt.*;
    public class A extends Applet
    private int w, h;
    public void init( )
         w = 45;
         h = 50;
    public void paint(Graphics g)
         g.drawRect(w, h, 20, 80);
    }

    import java.applet.*;
    import java.awt.*;
    public class A extends Applet
    private int w, h;
    public void init( )
    w = 45;
    h = 50;
    public void paint(Graphics g)
    g.drawRect(w, h, 20, 80);
    <applet class="A" height="200" width="200" code="A.class">
    </applet>
    */And in command prompt
    javac A.java
    appletviewer A.java
    Message was edited by:
    passion_for_java

  • How to run the programes in NetBeans

    any body know how to run the java progarm in NetBeans.
    can u please guide me?
    Advance in thanks

    thanks for ur reply.
    this is my code.
    public class sample11 {
    /** Creates a new instance of sample11 */
    public sample11() {
    public static void main(String args[])
    System.out.println("nithya");
    i did watever u told. but i don't have o/p. wat can i do? how to it display the o/p?

  • How to run the query in  screen painter

    i am using the patch 36 in business one so pls give information  about 
       how to run the query in  screen painter 
    regard
      sandip adhav

    Hope u have reached Screen painter interface,
    1. Click 'Add Grid' from tool bar.
    2. Go to 'Collections' tab in 'Properties' window.
    3. Choose 'Data Tables' from the Drop down list.
    4. Click 'New' found at the bottom of the Properties Window(same window)
    5. U'll find the place to insert ur query.
    6. U can rename the table name from 'DT_0'
    7. Choose type as 'Query'
    8. Clear content from box 'Query'
    9. Enter ur query there. Dont forget to Click 'SET'
    10. Go to Preview option from tool bar.
    now ur query will be displayed as table format.
    Note: First try with simple query b4 going for linking option.
    Regards,
    Dhana.

  • How to run the smsserver in xp

    hi friends,
    May i know, how to run the smsserver in windows xp...

    What smsserver?
    Please ask detailed questions.

  • How to run the Invoices in different groups within the batch in AP

    Need to know that how to run the Invoices in different groups within the batch. This will be of very helpful when we deal with lot of lines under one batch. (e.g) like somewhere we issued a Corporate Card to all the employees Via Bank Of America. Every Month they will send the complete details of all the employees who ever swiped the corporate provided BOA. Accordding to Natco all those lines should be loaded as One Invoice so that a Single Payment can be provided to BOA and it will also makes their life easier. This standard program sometimes it works normal sometimes it will run like a TORTOISE. So thats why in the manual they suggested to use GROUP ID to split the Invoice Load.
    So plz tell me how we can run it
    plz give me the solution
    thanks

    can you give me some material or document on that so that i can read actuaaly i need to make doc on it..

  • How to run the application in weblogic

    Hello!
    I have deployed 1 application in Apache Tomcat , it is working fine. Now i want to deploy same application in Weblogic Server. I have already installed "Weblogic 9.1". Now i dont know how to do and what to do next.
    I also dont know where to copy that application folder in weblogic, and how to run & deploy the application?
    I have stuck over here.
    Please if anybody knows how to run the application in weblogic, plz let me know.
    I need your help.
    Thank you.

    hi,
    have you gone through [this link.|http://e-docs.bea.com/wls/docs92/index.html]. i think it may help.

  • How to run the mappings in owb?

    Hi,
    I am new to owb pls say that how to run the already created mappings in owb.My dba have loaded the data in the oracle i neeed to uppend the data in to owb.pls help me.
    Thanks,
    raju
    Edited by: 814740 on Nov 23, 2010 12:49 AM

    You need to make sure that OWB control center service is running . You can check this by show_service.sql (OWB_HOMW\owb\rtp\sql)
    Then logon to OWB designer --- > goto control center ----> select the mapping you want to run .
    Verify that it is deployed successfully . If yes the click on start , your mapping execution will start .
    See the result .
    Thanks,
    Sutirtha

  • How to run the Macro in RTF

    Hi Tim,
    Do you know how to run the WORD macro in RTF?
    Suppose I want to run the macro for Section Break, Is there any way we can call it using WORD Macro.
    Any help is appriciated.
    Thanks,
    Ambadas

    Hi Ambadas
    Now, Im not entirely sure what you mena by:
    'Do you know how to run the WORD macro in RTF?'
    Are you looking to run a macro to create a section break for you during the design of the template? - you can do this.
    Or do you want to embed a macro in the RTF output - you can not do this - RTF does not support macros.
    Please explain further.
    Regards, Tim

  • How to run the report and show the output in excel file

    salam
    how to run the report and show the output in excel file,
    how to run the report and print the o/p via printer
    how to run the report and send the o/p via mail
    thank u all

    Hi,
    There are Parameters DESTTYPE, DESFORMAT and DESNAME. You can set these parameters to get as you want.
    1) Output in Excel File
         ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'FILE');
         ADD_PARAMETER(PL_ID, 'DESFORMAT', TEXT_PARAMETER, 'DELIMITED');
         ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, '<file_name>.XLS');2) output to printer
         ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'PRINTER');
         ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, '<printer_name>');3) Email - Have to configure SMTP and all. ( i didn't checked it)
         ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'MAIL');
         ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, '<email_id>');Regards,
    Manu.
    If this answer is helpful or correct, please mark it. Thanks.

Maybe you are looking for