How to incorporate the C/C++ code in Java?

Guys,
Does any one here knows about in incorporating the C/C++ code in java?
Or know about to call the C/C++ code in java?
Guys, please impart your knowledge to me...
Thanks,
Mercy

JNI is built right into the JVM - in fact some of the most fundamental of the library classes use it to get access to the operating system.
You package your C and C++ into a DLL (windows) or shared library (unix) to which you connect with a System.loadLibrary() call.
To create the hooks, you declare special methods native. Then you run the classes with native methods through the javah comand to generated C headers declaring the methods to which the java connecfs.

Similar Messages

  • How to incorporate the quantity formula in work centre

    I have to incorporate the quantity in work center. if i m using a formula of operation quantity but it is giving me the error that u can only use the formula which has been defined as origin 2. can any one guide me how to incorporate the quantity formula in work center,
    The situation is this my client asked me to incorporate the GR quantity as activity type, is there any provision in the system to incorporate the activity as standard value of workcentre i hav used the standard parameter provided for GR quantity but it has the dimension of time while every thing produced at my client location is either is KG or in Carton..
    kindly guide me to resolve the issue.........

    Hi,
    Create a Parameter "ZQUN" with Dimesion as "Mass" and standard value init "KG" and assign this parameter to a formula and assign the formula in the work center, define the standard quantity initially, at the time of final confirmation enter the actual GR quanitity.
    Pls get back for any clarification

  • How to get the restriction pass code for iPhone ?

    How to get the restriction pass code for iPhone ?

    if you forgot it you have to restore your phone to get past that code

  • How to run the open script code from eclipse?

    Hi,
    How to run the open script code from eclipse.
    Please let me any soulutions on this.

    Hi Konda
    I am not quite sure you can do that and it would even be not supported... Again, what is the purpose? Why do you want to run your openscript code in Eclipse?
    What is the code you try to run?
    As an example, even if you include al the jar files and so on. don't think the function "Launch Browser" could work because it isn't only java code orjar files.....
    If you give us more background. maybe we can guide you to a better solution...
    JB

  • HOW TO PRINT  THE EXCEL CELL COMMENT IN JAVA SWING FRAME ?

    How to print the excel cell comment in java swing frame
    user can print the data of cell with comment in bracket in java swing frame.
    please make one java code to read an excel spreed sheet and print the output in Java swing frame as follows
    EMP NO - 1, 2, 3
    EMP NAME - aname (amitesh:very good), bname (amitesh: average), cname (amitesh: very bad)
    EMP AGE - 11, 22, 33
    EMP DESG - ad, bd, cd
    Note: the bracket portion is the excel comments put in that cell

    hello everyone i'm new to this forum..how are you all...
    Jack Brosnan
    [mobile phone|http://www.mobilephonesforsale.net.au/apple-iphone-f-2.html]

  • In OBIEE 11G, how to get the special parameter created by JAVA?

    Hi Experts,
    In OBIEE 11G, how to get the special parameter created by JAVA?
    For example:
    In JAVA , it has set one parameter named 'test'.
    So how to get the parameter in filter area in OBIEE?

    Hi Kobe,
    No P2 holds the parameter name like PresentationTable.ColumnName, in your form you may go for complete name or just column name and before submitting the form you can define the Action url.
    I would suggest to read section 6.3.2.1.
    ex:
    <SCRIPT LANGUAGE="JavaScript">
    changeAction(url) {
    var TestVar = form.inputbox.value;
    document.this_form.action="saw.dll?Go&Path=/Shared/Test/SB2&Action=Navigate&P0=1&P1=like&P2=Customers.Region&P3="+TestVar;
    </SCRIPT>
    </HEAD>
    <BODY>
    <FORM NAME="myform" ACTION="" METHOD="GET">Enter something in the box: <BR>
    <INPUT TYPE="text" NAME="inputbox" VALUE=""><P>
    <INPUT TYPE="button" NAME="button" Value="Click" onClick="changeAction(this.value)">
    </FORM>
    If helps pls mark.
    Edited by: veeravalli on Oct 24, 2012 10:25 AM

  • How to get the current GMT time in java

    Hi,
    How to get the current GMT time in java
    Thanks

    System.getCurrentTimeMillis() or new Date().
    [url http://www.javaworld.com/jw-12-2000/jw-1229-dates.html]Calculating Java dates: Take the time to learn how to create and use dates
    [url http://www.javaalmanac.com/egs/java.text/FormatDate.html]Formatting a Date Using a Custom Format

  • How to get the current function name in java

    How to get the current function name in java.
    In c it is done as
    printf("%s",__func__);
    Thanx in advance.

    j0o wrote:
    System.out.println("Class Name: " + new Exception().getStackTrace()[0].getClassName() +
    "/n Method Name : " + new Exception().getStackTrace()[0].getMethodName() +
    "/n Line number : " + new Exception().getStackTrace()[0].getLineNumber());
    I pointed the OP at this approach yesterday in one of his multi-posts. I still have not been given my Dukes!

  • How to  get the profile object in simple java class  (Property accessor)

    Hi All,
    Please guide me how to get the profile object in simple java class (Property accessor) which is extending the RepositoryPropertyDescriptor.
    I have one requirement where i need the profile object i.e i have store id which is tied to profile .so i need the profile object in the property accessor of the SKU item descriptor property, which is extending RepositoryPropertyDescriptor.
    a.I dont have request object also to do request.resolvename.
    b.It is not a component to create setter and getter.It is simple java class which is extending the RepositoryPropertyDescriptor.
    Advance Thanks.

    Iam afraid you might run into synchronization issues with it. You are trying to get/set value of property of a sku repository item that is shared across various profiles.
    Say one profile A called setPropertyValue("propertyName", value).Now another profile B accesses
    getPropertyValue() {
    super.getPropertyValue() // Chance of getting value set by Profile A.
    // Perform logic
    There is a chance that profile B getting the value set by Profile A and hence inconsistency.
    How about doing this way??
    Create PropertyDescriptor in Profile (i.e user item descriptor), pass the attribute CustomCatalogTools in userProfile.xml to that property.
    <attribute name="catalogTools" value="atg.commerce.catalog.CustomCatalogTools"/>
    getPropertyValue()
    //You have Profile item descriptor and also storeId property value.
    // Use CustomCatalogTools.findSku();
    // Use storeId, profile repository item, sku repository item to perform the logic
    Here user itemdescriptor getPropertyValue/setPropertyValue is always called by same profile and there is consistency.
    -karthik

  • How to view the change immediately after a java file is modified without restarting server or redeploy?

              Hi All,
              How to view the change immediately after a java file that is used in jsp is modified
              without restarting server or redeploy?
              Moreover, it is better to keep the original session.
              Any suggestion is appreciated.
              Kammau
              

              Hi,
              In order to have a new version of a java class, the current classloader must be
              deleted and a new one created. This is what redeployment does. I believe that
              this is more of an issue with Sun's implementation of classloaders. You could
              ask BEA support (719.232.7878) and see if they have any plans to periodically
              check jar files to see if java class file timestamps and destroy and re-create
              classloaders on the fly.
              1) You will still have to accept the performance hit of destroying classloaders
              and creating new ones. There isn't any way around that.
              2) I would think you would want to have more explicit control in production and
              integration anyway.
              You can redeploy applications from the command line (script) file not just the
              console.
              Hope this helps,
              pat
              "Kammau" <[email protected]> wrote:
              >
              >Hi All,
              >How to view the change immediately after a java file that is used in
              >jsp is modified
              >without restarting server or redeploy?
              >Moreover, it is better to keep the original session.
              >Any suggestion is appreciated.
              >
              >Kammau
              

  • How to force the Netscape browser to use Java Plug-in 1.3.0_02?

    For Analyzer 6.2.1, how to force the Netscape browser to use Java Plug-in 1.3.0_02?

    Change the classid in the object tag here is some info.This applies to JRE's 1.3.1 and greater.How do I know what Class ID to use for a specific JRE?CAFEEFAC-0013-0001-0004-ABCDEFFEDCBACAFEEFAC = This tells the browser to force a specific JRE0013-0001-0004 = JRE version number 1.3.1_04 (1.3.1_08 would be 0013-0001-0008)ABCDEFFEDCBA = Just needs to be there.1.3.0_02 = E19F9331-3110-11d4-991C-005004D3B3DB, it seems like they did not implement the standard until v.1.3.1Any good JRE Version = 8AD9C840-044E-11D1-B3E9-00805F499D93, this class id will just look for any good JRE.http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/version.html

  • How to get the partner function code by partner function?

    For example, I need to know the partner function code for 'Reported By' and it's 'SLFN0002', How can I get this information by abap code?
    Best regards,

    Hey Blake,
    You can look up CRMC_PARTNER_FT( Db table ) which is used in the above  maintainance view...
    Use select stmt to populate an internal table.. then use Read Table( which key DESCRIPTION = < Sold to party > and so on...
    Just Get an Abaper and things would be easy..
    Reward points for usefull posts..
    Regards,
    Anand

  • How to extract the smtp response code

    Hi,
    I am trying to get the server response by SMTPTransport.getLastServerResponse(),
    and getting the response as "250 2.0.0 OK 1201842889 c39sm4983397anc.25", in case of success.
    This response would differ in case of failure.
    Could please guide me as how to extract the response code from the result.
    Thanks!!

    It's time to read the SMTP spec.
    Also, read the javadocs for the com.sun.mail.smtp
    package to see how to get an Exception even for
    success that includes the detailed response codes.
    The smtpsend.java demo program will show you how
    to interpret the exception.

  • How to compile the DB lookup code for XI:

    Dear All,
    i am very new to java and XI. Please let me know how to compile a Java Code for DB lookup and put in the imported Archive in IR. is there a seperate way to do it? Please guide me step by step. for performing Communication channel DB lookup.
    I have gone through the Communication channel lookup of siva,
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    but i am not understanding how to compile the given code in Advanced user functions area without any mandetory .jar files and header files. and put it into XI .
    please guide me.
    I mean i use a jdk1.4.2 Compiler as my XI server has 1.4.2 compiler.
    Regards,
    prakash
    Edited by: senthilprakash selvaraj on Jun 17, 2008 4:03 AM
    Edited by: senthilprakash selvaraj on Jun 17, 2008 4:04 AM

    Hi,
    You don't have to worry about compliation. XI will automatically comple it when you create the udf, activate it and test your mapping. In case of any error it will give compliation error there itself.
    Regarding all the mandatory jar files which are required for compilation is already available in XI server.
    If you are using any third party libraries(jar files) you just need to add the jar file in your external definition and need to import the necessary packages in User Define Function. I hope it answers all your questions.
    Thanks
    Amit
    Reward point if answer is helpful

  • How to have the name of code PL/SQL

    I make a generique tools for logging in PL/SQL : http://log4plsql.sourceforge.net/
    1. how to have the name of the code PL/SQL which is run ?
    2. how have a pl/sql call stack dynamically ?
    proc1 -> proc2 -> package1.proc3

    For 2, check if DBMS_UTILITY.FORMAT_CALL_STACK will work for you:
    http://tahiti.oracle.com/pls/db901/db901.tabbed?section=32613
    For 1, is there anything in DBMS_DEBUG that would help?
    http://otn.oracle.com/docs/products/oracle9i/doc_library/901_doc/appdev.901/a89852/dbms_deb.htm#1015019

Maybe you are looking for