×

Discussion Board

Results 1 to 12 of 12

Thread: Dll In J2ME

  1. #1
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    72

    Question Dll In J2ME

    Hi All,

    I want to know hoe to create a dll for a mobile application in J2ME, is this possible if yes, please guide me through it, if not then please give me an alernative and guide me through it

    Regards
    Archana Muralidhar

  2. #2
    Super Contributor
    Join Date
    May 2008
    Location
    Helsinki, Finland
    Posts
    1,100

    Re: Dll In J2ME

    Hello, Archana Muralidhar!

    Assuming DLLs are Windows proprietary, so creating them "in J2ME" is hardly possible...if this is what you were after...?

    Please could you explain more your use case for this, what were you up to by starting to create such 'dll'?


    Best Regards,
    [FONT="Comic Sans MS"][COLOR="Blue"][/COLOR][I]Marko Lumivuori
    Technical Support
    +358 40 8019330
    [email]marko.lumivuori@nokia.com[/email][/I][/FONT]

  3. #3
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: Dll In J2ME

    Hello Archana Muralidhar,

    If you mean bundling Java class files into a library, then bundling the files into a zipped file should be sufficient. That can be then imported into project from within an IDE as library file.

    Please refer to the IDE documentation on how to perform this kind of import.

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,085

    Re: Dll In J2ME

    I want to know hoe to create a dll for a mobile application in J2ME, is this possible if yes, please guide me through it, if not then please give me an alernative and guide me through it
    In J2me me you make JAR's instead of DLL and include in your other projects as external libs and import the classes to use them on your final project.

    You can make these JAR files just like you make the JAR of your J2me class files but you should not obfuscate as you will need to call names and public method names to access them from your final project.

    thanks,
    ~Amitabh

  5. #5
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    72

    Re: Dll In J2ME

    Ok, but if i dont obfuscate then how will i protect my code

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

    Re: Dll In J2ME

    Can you tell us what you want to achieve? Why do you want to make a "DLL"?

    Graham.

  7. #7
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    72

    Re: Dll In J2ME

    I wanted to do that, because my company will be creating the functionality and the UI of the application will be done by the other, now we do not want the logic and the packet structures to be seen by the others, now how to i do that...????

  8. #8
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Dll In J2ME

    I guess the obfuscation is the only and the better way to do this.You better obfuscate the application at the highest level and check whether this suites to your needs.

    I wanted to do that, because my company will be creating the functionality and the UI of the application will be done by the other, now we do not want the logic and the packet structures to be seen by the others, now how to i do that...????
    What do you mean by this above quoted lines?

    I guess this is similar to the approach of the most of the companies.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  9. #9
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    72

    Re: Dll In J2ME

    Hi Raj,
    Yes that is how all the Companies Work, but the problem here once i obfuscate the Jar that i create that has the entrie logic, they will not be able to access the methods or functions in the code, if i dont then they can unzip the Jar file, now what do i do

  10. #10
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Dll In J2ME

    Quote Originally Posted by Archana Muralidhar View Post
    Hi Raj,
    Yes that is how all the Companies Work, but the problem here once i obfuscate the Jar that i create that has the entrie logic, they will not be able to access the methods or functions in the code, if i dont then they can unzip the Jar file, now what do i do
    If you will obfuscate the app at the high level then it is really hard to recompile the code and also to make it usable.So as far as the data can be used are the image that you might be putting inside the jar and any other text files.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

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

    Re: Dll In J2ME

    Quote Originally Posted by Archana Muralidhar View Post
    once i obfuscate the Jar that i create that has the entrie logic, they will not be able to access the methods or functions in the code, if i dont then they can unzip the Jar file, now what do i do
    You will need to configure the obfuscator not to modify names of public classes or public class-members. Check the obfuscator documentation for how to do this.

    With public names retained, it will be fairly easy to reverse-engineer the code. This is unavoidable.

    Graham.

  12. #12
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    72

    Re: Dll In J2ME

    Thank you very much

Similar Threads

  1. KERN-EXEC 3 error get when exe call from DLL.
    By SymbianTH in forum Symbian
    Replies: 1
    Last Post: 2009-10-08, 13:26
  2. J2ME or C++ for VoIP on Mobile
    By sandeepkumar03 in forum VoIP
    Replies: 4
    Last Post: 2009-02-02, 10:28
  3. J2ME or C++ for VoIP on Mobile Phone
    By sandeepkumar03 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2008-11-13, 20:14
  4. Dll woes on E60
    By Leviathan2040 in forum Symbian
    Replies: 17
    Last Post: 2006-07-26, 21:00
  5. DLL version control
    By filio in forum Symbian
    Replies: 0
    Last Post: 2006-05-09, 12:18

Posting Permissions

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