Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7776079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:47:14+00:00 2026-06-01T17:47:14+00:00

( A bit of background can be found in my previous question here, if

  • 0

( A bit of background can be found in my previous question here, if it assists someone in helping me: JamVm not running an application (that uses jpcap) on Gumstix ).

I am trying to run a packet sniffing java application on a Gumstix overo board. The application has been developed using Netbeans on windows 7. When I tried to run it on Gumstix (using JamVm), I got an error saying that a file libjpcap.so is missing. I then searched for jpcap package (or libjpcap.so) for angstrom distribution, and also for arm architecture (regardless of distro) but couldn’t find anything.

Therefore, as suggested on the jpcap website (http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/install.html), I am now trying to compile the jpcap source code on my Gumstix board. In the makefile (/src/c/Makefile), I set JAVA_HOME to /usr/java/latest. When I execute ‘make’, I get a large number of errors. A few of them are shown below:

root@overo:/usr/src/jpcapTar/jpcap-0.7/src/c# make
gcc -shared -L. -I/usr/java/latest/include -I/usr/java/latest/include/linux\
         -I/usr/include\
        JpcapCaptor.c JpcapSender.c JpcapWriter.c\
          packet_arp.c packet_datalink.c packet_icmp.c packet_ip.c\
          packet_ipv6.c packet_tcp.c packet_udp.c\
        -o libjpcap.so -lpcap
JpcapCaptor.c:6:16: error: jni.h: No such file or directory
JpcapCaptor.c:7:17: error: pcap.h: No such file or directory
In file included from JpcapCaptor.c:35:
Jpcap_sub.h:53: error: expected '=', ',', ';', 'asm' or '__attribute__' before '
*' token
Jpcap_sub.h:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before '
*' token
Jpcap_sub.h:55: error: 'PCAP_ERRBUF_SIZE' undeclared here (not in a function)
Jpcap_sub.h:57: error: expected '=', ',', ';', 'asm' or '__attribute__' before '
JpcapHandler'
Jpcap_sub.h:59: error: expected '=', ',', ';', 'asm' or '__attribute__' before '
UnknownHostException

Seeing that jni.h caused the first error message, I searched my linux box and but couldn’t find jni.h. Is this missing file the cause of the errors? Have I forgotten to add some paths somewhere?

Any help would be highly appreciated. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T17:47:15+00:00Added an answer on June 1, 2026 at 5:47 pm

    (Answering my own question in the hope that it might help someone else)

    For compiling jpcap on Gumstix, I first had to provide the following files and folders:
    1) jni.h (I got it from the jamvm source code)
    2) libpcap-1.1.1 source code (downloaded from tcpdump)

    Now, in the jpcap make file (located in /jpcap-0.7/src/c/), I modified JAVA_DIR and PCAP_INCLUDE to point to the folder in which I had just downloaded libpcap and jni.h.

    Jpcap still won’t compile. It looks for a file named ‘libpcap.so’, whereas my gumstix has got ‘libpcap.so.1’. Therefore, I created a symbolic link to point to this file:

    ln --symbolic libpcap.so.1 libpcap.so
    

    Running ‘make’ this time resulted in the file ‘libjpcap.so’ being created. Next I copied this file to /usr/lib/ and pointed LD_LIBRARY_PATH to this folder:

    export LD_LIBRARY_PATH=/usr/lib/

    The packet sniffing application started working after this. (I hope I haven’t missed/forgotten any step.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Bit support question. Apologies for that. I have an application linked with GNU readline.
For a bit of background, I'm writing a meter reading application in C for
Bit of a strange question here i know. but i wanted to know if
Bit of a beginner question here: Say I have a block of xml: <root>
EDIT: Solution in code can be found on bottom. I am not sure if
UPDATE: I found a solution. See my Answer below. My Question How can I
Far I've found that giving the iframe a background colour will alter the timeline
I have been doing a bit of testing with images today and found that
I may be asking the wrong question here, and I'm open to that, so
For a bit of background to know what i am doing: using hit highlighter

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.