Jni.h no such file or dir ??? What am I doing wrong ??

Hello I am following the jni tut and I am at the last part and when I go to compile the .c file I get this error no such file or dir <jni.h>.How can I get the jni.h file?

First let me say thank you GumB for your time.Ok now this is everything I have done
1)I have made a java file and comepiled it
2)I used the javah -jni HelloWorld to make a .h file
3)I have made the .c file which is posted here
Ok now my header file and my .class file and the .c file are all in the dir /home/dwa/JavaP
when I cd /home/dwa/JavaP into my dir and try to use this to compile
gcc -I/usr/java/j2sdk1.4.0_02/include -I/usr/java/j2sdk1.4.0_02/include/linux \ HelloWorldImp.c -o libhello.so
I get the errors
HelloWorldImp.c No such file or directory the file is there in /home/dwa/JavaP
gcc : No input file
The HelloWorld.c file is there in /home/dwa/JavaP
and for the sec error No iput file
I thought this what the input files
-I/usr/java/j2sdk1.4.0_02/include -I/usr/java/j2sdk1.4.0_02/include/linux
any clues ? Also like I said I can compile a reg .c program with know prob in the same dir as well, also this is the .c file now
#include <jni.h>
#include "HelloWorld.h"
#include <stdio.h>
JNIEXPORT void JNICALL
Java_HelloWorld_displayHelloWorld(JNIEnv *env, jobject obj)
printf("Hello world!\n");
return;
Thank for your time
Sincerely
Jimmyzz

Similar Messages

  • Bridge doesn't seem to convert my files to DNG what am I doing wrong?

    I am new to Adobe Bridge and to Digital photography so please bear with me if I'm not asking the 'right' questions!
    Basically I have been asked by my uni to supply my photographs as DNG files and to do this via Adobe Bridge.
    I am shooting using a Sony a200 camera in RAW format and using the bridge to 'get photos from camera' I have checked the convert to DNG box but the files it saves do not have a .DNG appendix.
    Am I doing something wrong? or will DNGs keep their original appendix?
    I'm confused! I've tried googling this with no avail so this is my final hope. Help!
    Thanks
    Lisa

    Lisa,
    It's entirely possible that your files are indeed being corrected properly into raw DNG files but you don't see the three-letter extension because you have your Mac preferences set to hide all extensions—which is a terrible idea in the first place.
    Go to the Finder, and under the Finder menu bring up the Preferences dialog box, go to the advanced tag and make sure the "Show all file extensions" box is CHECKED.
    Wo Tai Lao Le
    我太老了

  • JpcapCaptor.c:6:16: jni.h No such file or directory

    Hi all,
    i want to use jpcap for packet capturing on solaris
    but i have some compiling issues on solaris please guide me
    i run the gmake to make the project but it show some error
    gcc -G -I/include -I/include/solaris\
                -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: jni.h No such file or directory
    JpcapCaptor.c:25:20: ifaddrs.h: No such file or directory
    In file include from JpcapCaptor.h:35:
    Jpcap_sub.h:54: error: syntax error before '*' tokenthe files i downloaded didn't have jni.h file i downloaded the files several time but didn't find jni.h file ....
    any idea where to get this jni.h file how to fix that ?
    thanks

    i copied the header files in the include directory....thanks anyway,
    problem solved.

  • When i enter appstore its keep telling me "cannot connect to itunes store(No such file or directory) what should i do????

    when i enter appstore its keep telling me "cannot connect to itunes store(No such file or directory) what should i do????

    Hi mhmd.h,
    There was a very recent update to the entire Apple website. 
    If you are still unable to connect to the App Store from your iPhone, please post again.
    - Judy

  • When I try to convert a wav file to an mp3 it only gives me a 6 or 7 second mp3....what am i doing wrong?

    When I try to convert a wav file to an mp3 it only gives me a 6 or 7 second mp3....what am i doing wrong?

    Sorry you are having problems. Can you give an example preferably of some small publicly available file and the site you are trying to download it from ?
    As a simple example of a download (ok it is a .png image file not not a .exe file) but can you try to download a copy of your avtar/icon, as used on these forums. In Windows one method is that you right click & should get an option save. <br/> Mine alongside uses the link
    * https://support.mozilla.com/media/uploads/avatars/avatar-257447.png
    Are you able to download such an image, then see it in your download manager, and find it on your computer.
    Once you have got Firefox to save your binary file you can use it. In the case of the .exe file you are trying to download that should be usable as intended with your Windows Operating System, the avatar also should be easily opened and viewed.
    P.S.
    You could try installing the add-on https://addons.mozilla.org/en-US/firefox/addon/opendownload-10902/ if you wished to adapt Firefox to run .exe files instead of just save them.

  • An mp3 file on my computer will not import to itunes by either the drag-and-drop or the Add File to Library method.  Can't figure out what I'm doing wrong.  My OS is Windows 7.

    I purchased an mp3 from a private website on my laptop.  The itunes library i sync ipod to is on my desktop, so i copied the mp3 onto a flash drive and then into my desktop in the Downloads folder and Desktop folder as well as the itunes music folder, 3 places.  I opened itunes on the desktop and read the instructions for importing music that's already in my computer.  Neither the drag-and-drop or the Add File to Library method works.  I've tried both ways over and over.  Cannot figure out what the problem is.  I do note that the name of the mp3 file doesn't show the .mp3 extension, it appears as simply it's title, Eating Healthy, without any extension at all.  Could the filename be the problem, or do you have any other idea what I'm doing wrong?  My OS is Windows 7, using IE9.  Thanks.
    ADDENDUM AFTER READING ANOTHER DISCUSSION HERE:  I have now tried right clicking the song in Windows Explorer and choosing Open With, clicking itunes.  The mp3 plays in itunes but does not add to the library.

    I don't have a Recently Added playlist.  However, I discovered that the file I had named Eating Healthy was given the name You Can Enjoy Eating Healthy when it copied to iTunes.  I'm guessing iTunes pulled the full name of the piece from the internet.  Upshot--the mp3 did transfer to iTunes on all 3 tries, but I was looking in my alphabetized list under E, not Y, so I didn't see it there.  Thanks for your help. 

  • I'm trying to copy music from my PC to itunes. I open itunes, go to 'file', go to 'add folder to library', select the folder and nothing happens. What am I doing wrong?

    I'm trying to copy music from my PC to itunes. I open itunes, go to 'file', go to 'add folder to library', select the folder and nothing happens. What am I doing wrong?

    Hello there, gleab.
    The following Knowledge Base article reviews the ways to import content into iTunes:
    Adding music and other content to iTunes
    http://support.apple.com/kb/ht1473
    Also keep in mind which formats can be added:
    You can add audio files that are in AAC, MP3, WAV, AIFF, Apple Lossless, or Audible.com (.aa) format. If you have unprotected WMA content, iTunes for Windows can convert these files to one of these formats.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • I keep getting this error in Dreamweaver when I am trying to upload my website?  Can you tell me what I am doing wrong?  here is the error message: /html - error occurred - Unable to create remote folder /html.  Access denied.  The file may not exist, or

    I keep getting this error in Dreamweaver when I am trying to upload my website?  Can you tell me what I am doing wrong?  here is the error message: /html - error occurred - Unable to create remote folder /html.  Access denied.  The file may not exist, or there could be a permission problem.   Make sure you have proper authorization on the server and the server is properly configured.  File activity incomplete. 1 file(s) or folder(s) were not completed.  Files with errors: 1 /html

    Nobody can tell you anything without knowing exact site and server specs, but I would suspect that naming the folder "html" wasn't the brightest of ideas, since that's usually a default (invisible) folder name existing somewhere on the server and the user not having privileges to overwrite it.
    Mylenium

  • I am using Firefox 3.6.13 and have installed Windows Media Player 1.0.0.8 for Firefox. However, if I attempt to open a file with a .wmv extension it appears to function properly, except, that I cannot "play" the file. What am I doing wrong?

    # Question
    I am using Firefox 3.6.13 and have installed Windows Media Player 1.0.0.8 for Firefox. However, if I attempt to open a file with a .wmv extension it appears to function properly, except, that I cannot "play" the file. What am I doing wrong?

    You probably have not seen anyone reporting the exact same problem as you. All three crash reports have the same crash signature and as currently ranked 67 it is not the commonest of reasons for a crash.
    I hope you enter your email contact information when reporting crashes. I note you see this crash when using videos, others may possibly see this crash in other circumstances.
    You have already tried the obvious, attempts at a fix so it is now down to wait and see, maybe developers working on the bug will report something or fix it.
    Did you try my suggestion of installing portable ESR ?
    For forum cross referencing purposes
    * Crash Reports for Crash IDs <br />bp-71697f5d-41d4-48ae-9db9-3e6302130607<br /> bp-6e1347bc-153f-433a-9c35-a5f022130607<br /> bp-92a533a2-9e09-4c1e-8df7-deb4c2130607
    *(all three) Crash Signature: EnumSoftwareMFTs(_GUID const&, unsigned int, __MIDL___MIDL_itf_mfobjects_0000_0006_0003 const*, __MIDL___MIDL_itf_mfobjects_0000_0006_0003 const*, IMFActivate***, unsigned int*)
    * Related bug 858667 NEW crash in mozilla::wmf::MFTEnumEx @ EnumSoftwareMFTs
    *I note this was first seen in Fx21 and is 100% Windows 7
    <br />

  • Using Photoshop online, when I try to open a file in RAW filter the page opens in bright red and won't allow me to acess the filter.  What am I doing wrong?

    Using Photoshop online, when I try to open a file in RAW filter the page opens in bright red and won't allow me to acess the filter.  What am I doing wrong?

    Photoshoponline has a link you can try which web browser are you using?  If may be your browser or that they do not support your camera's raw format.  I received an error tht states try layer.  You should ask them your question Adobe Photoshop is not the problem its their Web application use their  link Pixlr.com Contact Us

  • After attempting to process my movie, I get the following message. "The project could not be prepared for publishing because an error occurred. (OpWrErr: file already open with with write permission). Any ideas what I'm doing wrong?

    After attempting to process my movie, I get the following message. "The project could not be prepared for publishing because an error occurred. (OpWrErr: file already open with with write permission). Any ideas what I'm doing wrong?

    Hi
    Error -49 opWrErr  File already open with write permission
    Trash the preference files while application is NOT Running.
    from Karsten Schlüter
    Some users notice on exporting larger projects from within iMovie that this operation is aborted with an 'error -49'
    This issue occours only on MacOs machines using 10.7x
    try switching-off the Local Mobile Backup
    in Terminal copy/paste
    sudo tmutil disablelocal
    Re-launch Mac
    Yours Bengt W

  • Just installed CC on my PC, Windows 7, 64 bit system. Not seeing any applications on the desktop or installation folder. However, all the resource files are present in the installation folder. What am I doing wrong?

    Just installed CC on my PC, Windows 7, 64 bit system. Not seeing any applications on the desktop or installation folder. However, all the resource files are present in the installation folder. What am I doing wrong?
    I've installed three times with no luck. I downloaded the Creative Cloud Packager off the licensing site: https://licensing.adobe.com. I unpacked and choose my applications. The install seemed to be successful, but I don't so any of the applications anywhere.

    Hi,
    Creating package doesn't mean it will install the product,
    You will need to install the package now. Please follow the instructions mentioned in the below articles
    Creative Cloud Help | Creating or editing packages
    Creative Cloud Help | Deploying packages
    Please let me know if it doesn't help.
    Regards,
    Devendra

  • I have Firefox 5.0 installed on my desktop and everytime i try to download or save a file the Firefox Download Manager won't open. Why? What am i doing wrong?

    I am running Windows Vista on my desktop. I also have Firefox 5.0 downloaded on my pc.
    Whenever i try to download a software update or any type of file the Firefox Download box doesn't activate anymore like it once did.
    Why? What am i doing wrong?

    '''''Options > General''''', be sure "Show the downloads window when downloading a file" is selected. See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20General%20panel Options window - General panel]<br />
    To remember download history in the download window, '''''Options > Privacy''''', "Remember download history" must be selected. See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel Options window - Privacy panel]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • I'm trying to install the new version, but each time during the installation, "Error writing to file: C:/Program Files (x86)/Common Files/Apple/Mobile Device/Support/AppleMobileDeviceHelper.resources/Info.plist." Keeps popping up. What am I doing wrong?

    I'm trying to install the new version, but each time during the installation, "Error writing to file: C:/Program Files (x86)/Common Files/Apple/Mobile Device/Support/AppleMobileDeviceHelper.resources/Info.plist." Keeps popping up. What am I doing wrong?

    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • HT1343 On my 4 1/2 year old Macbook I could select multiple files  by highlighting a file and then moving cursor over a file lower in the list, and pressing shift-control-click. I can't do that in now with Mac Pro.  What am I doing wrong?

    ghlighting a file and then moving cursor over a file lower in the list, and pressing shift-control-click. I can't do that in now with Mac Pro.  What am I doing wrong?

    Holding down the control key will invoke "right-click."
    Depending on the View, holding down Shift will with either toggle the selection (Icon View), or it will make a continuous selection from the previous selection (List View or Column View).
    The only way to make a continuous selection in Icon View is to drag out a selection marquee around or through the icons.
    I can't remember the behavior of previous OS's.

Maybe you are looking for