JNI Question

Discussion in 'Java' started by osamah_abuoun@hotmail.com, Jul 8, 2003.

  1. Guest

    Hi :
    may my describtion for the problem was not clear , my graduation project in
    the faculy is Network Monitoring , after searching for good base for the
    project we (me and my group) we have found the Nmap project , nmap project
    is offered by www.nmsp.org or www.insecure.org , the nmap was written in C++
    in which we are making our project in Java , so i try to make native for
    nmap (i made a dll file for nmap), when i test the project with the native
    it's work in searching for the Up computer on the LAN , when it find an Up
    computer , it will try to search for the open ports on it , here the
    EXCEPTION_STACK_OVERFLOW will raised , the procedure in C++ file that makes
    the problem is :
    - more than 500 line in one procedure (!!!!) .
    - allocate a very huge number of parameter (one of those parameter is
    allocating for 65000 location for integer as i remember ).

    i tried to decrease the memory , but this work was waste for the time ,
    because for example i need to scan all the port range 1-65000 , in addition
    for there is dynamically allocation in runtime i can control them in
    debugging.

    My Note :
    - The excutable file of the nmap project works properly without any
    error and without any limitation .
    - The running of the java project without port scanning works
    properly too (via native and nmap.dll).
    - i tried to run the nmap.exe file from java via Runtime interface
    and it works properly without any problem .

    i try now to work on making nmap.so (for run nmap on linux) .
    so , i think , this is a complete descibtion for the state , i'll work to
    prepare a sample of the project and i'll send it after some hours .
    finally , i tried to find a solution for this problem but i failed , and i
    have only 10 days before the project delivery in which all the other section
    was complete nearly,
    thank you very much .



    My Best Wishes

    Osamah
     
    , Jul 8, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alex Hunsley

    IBM's JNI fails where Sun's JNI works

    Alex Hunsley, Nov 3, 2003, in forum: Java
    Replies:
    4
    Views:
    870
    Alex Hunsley
    Nov 4, 2003
  2. Pasturel Jean-Louis

    Porting JNI Windows under JNI LINUX + Wine ?

    Pasturel Jean-Louis, Feb 29, 2004, in forum: Java
    Replies:
    5
    Views:
    939
    Pasturel Jean-Louis
    Mar 3, 2004
  3. vasanth
    Replies:
    0
    Views:
    2,764
    vasanth
    Jan 25, 2005
  4. vasanth
    Replies:
    0
    Views:
    635
    vasanth
    Jan 25, 2005
  5. bgabrhelik
    Replies:
    0
    Views:
    877
    bgabrhelik
    Sep 29, 2009
Loading...

Share This Page