Using blackberry Java native methods

Hi all

can anyone suggest me how to implement the native methods from java in blackberry apps. In singles, I have a C code, I want to use this code in my blackberry App when I google, I found that java supports the native to consume methods the

Code of C/C++ in java applications. I want the same thing to do in my blackberry app.

If someone implementd that kind of technique, so please give the steps or the way how to implement this.

Verify that this son.

http://supportforums.BlackBerry.com/T5/Java-development/JNI/m-p/41140

http://supportforums.BlackBerry.com/T5/Java-development/can-we-use-JNI-Java-native-interface-approac...

Tags: BlackBerry Developers

Similar Questions

  • Can we use JNI (Java Native Interface) approach in the Blackberry applications?

    Hello

    Someone help me find if we use the JNI (Java Native Interface) approach in applications Blackberry JDE version 4, 5?

    of course, use logic and rewrite in java. the actual coding usually takes only a small amount of development time, if you have a proper design.

  • What is Blackberry Bis push Service different development of BlackBerry Java development?

    Hello

    I develop applications using blackberry java development. I want to develop an application that uses blackberry push service, pls suggest is different from the java development?

    What do you mean with 'different '?
    BIS push uses the infrastructure of the RIM and is a service, it is independent of the programming language.

    You can use BIS push with java bb, you can use it with webworks/html5, and you can also use it on bb10 with c ++.

  • When you use Device.device.os, it throws error #1079: native methods are not allowed in the loaded code.

    Hi all

    When I tried to use the Device.device.OS to get the string from the bone. It is compiled smoothly. But it throws error when the application started on my desk.

    Error #1079: Native methods are not allowed in the loaded code.

    It does not error in the emulator, but he did not get the chain of the OS.

    Someone knows how to use the device class? Is it still not currently supported?

    Thank you very much!

    Error #1079: Native methods are not allowed in the loaded code.

    This error is thrown on the desktop because your qnx - air.swc is probably in the process of fusion as code instead of being tied to your project as external. The reason who need to be external is that it contains classes that exist in the execution of AIR in the Simulator and not in the AIR runtime on your desktop. The device classes use the custom air extensions we wrote to get the properties of the device.

    If you want just the operating system, you can also use the Capabilities.os, which is a standard API Flash Player and does not require the use of custom extensions.

    My guess on why it does not work on the device thus is that the qnx - air.swc is not defined externally. Return to externally set and run it in the Simulator.

    Hope that helps

    Julian

  • Cancel the deployment of a Web application using a Java method or call

    Hi, I have an application that is running on weblogic I want to cancel the deployment using a Java method or a call.
    Is it possible to do it with a specific API to weblogic or something like?
    Thank you!

    Hi CarolinaCunha,

    Please visit the following link to cancel the deployment of Applications using the Java method:

    http://jaysensharma.WordPress.com/2010/01/15/Undeploying-application-using-Java-method-JMX/

    Thank you
    Jay SenSharma

  • How to upgrade your java application using Blackberry desktop Manager?

    Hi all

    How can I update an application using Blackberry Desktop Manager. ?

    because I'm not able to do this by using "Application loader" > editing Application in the Desktop Manager.

    If please suggest me some reference or guide in this regard.

    Thanks & best regards,

    Narendra.

    Did you change the version number? DM will not recognize the program as an update version number increments unless.

  • Create the web icon using BlackBerry plugin for Microsoft Visual Studio

    Hi all...

    I am very new to the blackberry application development...

    I want to create web icon on blackberry. I use BlackBerry plugin for Microsoft Visual Studio

    Please give any link sample code or reference on how to create a web icon using BlackBerry plugin for Microsoft Visual Studio.

    Please its urgent.

    Thanks in advance.

    There are two ways that you can do with a BlackBerry.

    (1) you can push an icon on the desktop of users using push of BES or the new WebSignals.  This method requires no code peripheral side, but it requires the code side Server integrated with the BlackBerry Enterprise Server (BES) or our WebSignals public service

    (2) you can create a small Java application that is installed on the device that launches the browser to a specific URL.  You will need to Java plug-in for Eclipse to get there.

  • Java Native Interface (JNI) for connectivity Oracle Service Bus

    Hi all

    We have a legacy database and its functionality exposed by some of the C/C++ API programs. Our requirement is to make the use of these APIs and integrate the Oracle Service Bus (ESB of Oracle Fusion Middleware)/BPEL

    From now on, the C/C++ API have been compiled into a library and called from a JAVA JNI class. So according to the concepts of the JNI, java class simply calls the native methods that are implemented in C/C++, by calling to this library.

    Here is an example of an implementation:

    public class DatabaseConnector {

    public native String establishConnection(  String ServerName, String UserName, String Password );

    static {
      
    System.loadLibrary(LIBRARRY_NAME);
    }

    public static void main(String[] args) {

      
    DatabaseConnector dbconn = new DatabaseConnector();  
      
    String result = dbconn.establishConnection(args[0], args[1], args[2]);
      
    System.out.println("Result of Connection Establishment: " + result);

    }
    }

    Autochanger_name (libLIBRARY_NAME.so) contains the implementation of the native method for creating the connection, refreshing connection, sending message, etc.

    Now, what is the best way to integrate this feature of JNI in an Oracle Service Bus/BPEL?

    Legacy-> Db-> C/C++-> JAVA JNI API? -> OSB/BPEL

    1. Is it really possible to write a based on this JNI EJB session bean? I understand, EJB standards are against loading native libraries directly in the Java class, as a result of NYI.
    2. Is it possible to write any custom JCA adapter for this? What are the possible areas that I need to answer then?
    3. All other possible ways that you think would be appropriate?

    There is a requirement of the settlement planning. As a connection method refresh should be called every X minutes to keep the connection open. Topology wise there are no restrictions to run native code and the Weblogic container on the same machine.

    Any suggestions much appreciated. Let me know if you need more information.

    Kind regards

    Billon

    Hi Bhaskar,

    Both JAX - RS and adapter resources must be built on top of the NYI... With the help of Tuxedo allows to eliminate the use of the NYI...

    If you need/want to eliminate JNI, the solution is to make the native libraries behave as a provider of services, exhibition services via a network protocol... You can do this with or without smoking, but I like the Tuxedo approach...

    However, if you're ok with JNI, build a resource adapter...

    See you soon,.

    Vlad

  • Download blackBerry 10 native SDK Beta issue.

    Hi all:

    I encounter an error message when you try to download 10 native SDK Beta BlackBerry or BlackBerry 10 Dev Alpha Simulator. When I click on the download link, I encounter the following error:

    Error!

    Error downloading due to export restrictions.

    (using URL: https://developer.blackberry.com/native/beta/downloads/ )

    Hey there,

    I looked into the issue and it was caused by a restriction imposed on your location. It has been fixed and you should be able to download the SDK. If the problem persists after that 24 hours made me know.

    Thank you

    Martin

  • BlackBerry Java plugin for Tour 9630

    I install different versions of software from the "BlackBerry Update site" in the «assistance, updates of software...» "in Eclipse.

    This way, I installed 4.5.0, 4.6.0 4.6.1, 4.7.0 5.0.0 etc, but I am not able to find 4.7.1 which is necessary to obtain the 9630 Simulator and get it integrated into Eclipse.

    Any ideas how to do this?

    There is no version 4.7.1 BlackBerry Java SDK.  You can download a simulator BlackBerry Smartphone running the version 4.7.1 here: http://na.blackberry.com/eng/developers/resources/simulators.jsp

    Once installed, you can use within Eclipse.

  • Date time format BlackBerry java application

    Hi all

    I'll have a Date format time as ' 2013-10 - 09T 12: 45:00 + 05:30 '. How can I convert in ' hh: mm a "or" hh: mm a "in my Blackberry Java Application.

    Thank you and best regards.

    I will not be able to solve this problem using techniques integrated... In any case I analyzed it manually...

    Thankng you all for you answer!

  • BlackBerry Java plug-in for Eclipse plugin vs for websphere studio device developments

    Hello world

    I am at a loss, because I can not even begin to help in the development of websphere studio device, because I can't find any plug-in for it, for my body I have to use this IDE which is Websphere studio as an IDE device development to develop my app for BlackBerry 8310, so I look to find how to test my java application measures  , so I find BlackBerry Java plug-in for Eclipse ", my question is are there any plugin fo Wbsphere IDE, and there is a way to use the same plug-in of eclipse for me.

    Thank you;

    can't answer the first question that I don't ever use websphere - if you want to use it, you will find a way, if not I suggest you switch to eclipse.

    Yes, you must generate the Cod. It cannot be run without generating the binary file.

    FYI: we use eclipse as editor-in-Chief and the jde as a tool to build test /.

  • How to work Blackberry Java or Webworks with PHP?

    Hi I'm new in the development of a Blackberry Application.

    I would like to ask?

    How can I pass a value of PHP for blackberry app?

    Example:

    When (Blackberry application) click a button and it will automatically receive a (field) in the value of PHP / Web site.

    If the site passes a value as (name: Harry) and then the area of the blackberry application will appear 'Harry' in the text box. Thank you

    And also we must I use Blackberry Webworks or Blackberry Java? I can so able to create logic from above. Thank you so much support forums blackberry developers

    From: Kiheyt

    In order to obtain data from a web service (PHP or any other language), you must first create a connection to your server.

    The connection and the transferred data are generally independent of the server (especially when it comes to HTTP) as the connection is based on known standards and data is transferred in the form of bytes (which are numbers o that it doesn't really matter what language you are coding).

    In Blackberry you can create a connection to the server to retrieve data or connect 'push', in this case, your client is still connected and the server sends notifications to the client.

    To learn more about the first option, just look at 'http connection' in the forum (there are about 1000 different threads).

    For more information on the second option, search for "push" or "push notifications" and have a look here:

    http://supportforums.BlackBerry.com/T5/BlackBerry-push-development/sample-applications-demonstrating...

    As for the second question, I don't have enough information to help you. Maybe if you would give details on your request, we will help you even more.

    I hope this helps,

    E.

  • How to call java class/method control-flow-case

    Hello everyone, I'm newbie...
    I have little problem managing about control-flow-case adfc-file config.Xml. in this case i'want to call control-flow-case of java class/method (manage-bean)

    If someone help me solve this problem...?

    THX cordially
    agungdmt...: D

    If you have the control-flow-case defined between Page1.jspx to Page2.jspx as "goToPage2."
    You can use the code snippet in the bean managed in Page1.jspx

    FacesContext context = FacesContext.getCurrentInstance ();
    context.getApplication () .getNavigationHandler () .handleNavigation (context,
    NULL,
    "goToPage2");

    Thank you
    Nini

  • How to avoid using the library native ttJdbcCS when connecting to remote host?

    I'm testing the Java program with the product that limits the use of native libraries.
    I use the 'client' mode to connect to TimesTen DB (which is done by using the plug, not the shared memory).

    It seems that even in client mode TimesTen JDBC driver calls the library native ttJdbcCS when doing remote queries.
    Why it does not use Java sockets? What is necessary for the native library?
    Is it possible to eliminate the use of native libraries in client mode of the JDBC TimesTen driver somehow?

    I fear that it is not possible to eliminate the use of native code for TimesTen libraries. Both direct drivers and customer are drivers of type 1 (JDBC/ODBC bridge). In both cases the JDBC driver Java code called NYI optimization library ttJdbc/ttJdbcCS and that the library in the direct or client ODBC driver (also called native code).

    If you want to use TimesTen then you must be able to allow the use of these native code libraries. The only other alternative is to implement your own client/server mehcanism such that you can put your own component 'server' on the machine running TimesTen and then use pure Java to communicate with this component of the 'customer '. Generally, it is however a lot of work.

    Chris

Maybe you are looking for

  • Corrosion of the magnetic clasp band watch Milanese stainless steel

    I have a Milanese stainless steel watch loop which is almost a year It seems that moisture to wash the hands got under the cover plate in stainless steel, which is located within neoprene rub and began to corrosion (rust) of the magnet in the clasp. 

  • Need BIOS for Satellite 1100-z17 file

    Can you help me with a bios for toshiba satellite 1100-z17 file because I tried to update the bios with satellite 1100-z1 and my phone is dead!Please help me!Kind regardsget Post edited by: get

  • How to remove corruption Encarta Premium 2009

    I have a corrupted Encarta Premium 2009 version and want to uninstall it, but the software uninstall program cannot find the file .iso of origin. How can I remove Encarta 2009? [Moved from comments]

  • HP ENTERPRISE M606: Name that party!

    I have a broken printer user introduced me to this (see attached) without any comments. What is it?

  • STOP 0x0000008e error, unable to start or reinstall Windows XP.

    Original title: XP will not start or reinstall. I have XP as my OS and I can't start normally, safe mode, format or reinstall. Normal startup is not found. Safe mode comes up with different drivers missing ex.\windows\system32\DRIVERS\iaStorV.sys. Co