Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JNI Question

Thread Tools

JNI Question
Posts: n/a
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 or , 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

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 (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

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
JNI thread vs. native thread vs. JNI call bgabrhelik Java 0 09-29-2009 03:33 PM
Re: JNI: Error loading DLL from JNI DDL vasanth Java 0 01-25-2005 11:03 AM
Re: JNI: Error loading DLL from JNI DDL vasanth Java 0 01-25-2005 11:01 AM
Porting JNI Windows under JNI LINUX + Wine ? Pasturel Jean-Louis Java 5 03-03-2004 07:50 PM
IBM's JNI fails where Sun's JNI works Alex Hunsley Java 4 11-04-2003 10:34 AM