×

Discussion Board

Results 1 to 5 of 5

Thread: About .Net dll

  1. #1
    Registered User
    Join Date
    Oct 2009
    Location
    Delhi
    Posts
    124

    About .Net dll

    Hi
    is there any method by which i can access a .net dll in j2me.if possible please help me on the same....

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: About .Net dll

    You know that .net is Windows only? It doesn't work on Nokias. When developing for Windows Mobile, you are usually better to use .net and avoid Java, unfortunately.

    There is no Java Native Interface in Java ME CLDC. You cannot access native code.

    The only way to do it is to build your native code into some kind of server (using TCP sockets) and connect to it from a Java application (using HttpConnection or SocketConnection to 127.0.0.1). Note that you cannot, in general, launch a native application from a Java application, so the two applications must usually be invoked separately.

    Graham.

  3. #3
    Registered User
    Join Date
    Dec 2009
    Posts
    42

    Re: About .Net dll

    Only way would be via sockets as graham said. Use http connection to webservice that exposes the dll methods you need. Other than that, no. They are 2 completly different worlds

  4. #4
    Registered User
    Join Date
    Oct 2009
    Location
    Delhi
    Posts
    124

    Re: About .Net dll

    thanks to both of you for your help...actually i am new to j2me..so can u help me with some sample code...

  5. #5
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: About .Net dll

    This article in the wiki describes the technique for interfacing between a Java ME application and a native Symbian application.

    Graham.

Similar Threads

  1. GoogleIt
    By deepika.mangla in forum Symbian
    Replies: 5
    Last Post: 2011-05-28, 11:04
  2. Replies: 6
    Last Post: 2009-01-31, 10:13
  3. Replies: 1
    Last Post: 2007-07-17, 16:21
  4. what happens to TLS when DLL is unloaded?
    By rtillitt in forum Symbian
    Replies: 1
    Last Post: 2002-11-27, 12:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •