Can't create the .h file

Hello all,
I am new to JNI and my first program is not running.
My steps are as follows:
1. First, I created two Java files as shown below.
HelloWorld.java
class HelloWorld
public native void displayMessage();
static
System.loadLibrary("HelloWorldImp");
Main.java
class Main
public static void main(String[] args)
HelloWorld hello = new HelloWorld();
hello.displayMessage();
2. Then I Compile the Java files.
javac HelloWorld.java
javac Main.java
3. Then run the the HelloWorld using command :
javah -jni HelloWorld
Then i got the error:
Error: class HelloWorld Could not be found.
I am using jdk1.3 and my path is c:\jdk1.3\bin.
Pls help.

Hi,
I do have cgywin installed so I did the following:
gcc -I/cygdrive/c/j2sdk1.4.2_03/include -I/cygdrive/c/j2sdk1.4.2_03/include/win32 -LD HelloWorldImp.c -o hello.dll
by changing -Fe to -o and cl to gcc. I got many compilation errors on the jni.h file itself such as the following:
/cygdrive/c/j2sdk1.4.2_03/include/jni.h:554: error: `jlong' declared as function returning a function
/cygdrive/c/j2sdk1.4.2_03/include/jni.h:554: warning: data definition has no type or storage class
It shouldn't be the case the jni.h is the library file.
Hope you can help,
thanks a lot.

Similar Messages

  • How can we create the DBC file?

    Hi all,
    I am attempting to run the test_fwktutorial.jsp within the toolbox.jws/Tutorial.jpr project in Jdeveloper . We have to provide the Oracle application DB connection in the project properties ( we have to provide this as a DBC file) . How can we create the dbc file from the Database connection ? i tried to export the DB connection in Jdev , but it is getting exported to xml file rather than dbc file . Please help to fix this.

    Yes, you can do that.
    Put both the DBC files under dbc_files\secure folder.
    You can change the dbc files from project settings and point to the desired file.
    I am not sure, but maybe you need to stop JDevloper and start again for the new DBC file to take effect.

  • Can't create the m2v file

    I have a problems sometimes with QuickTime file conversion for DVD author.
    I have render my sequence in FCP (v5) than File -Export -Using Quick Time Conversion.
    I have right MPG2 Quick Time settings and get message about not rendered sequence files...(I did rendered them)
    I think this has to do something with files management, right drives or folders.
    Help.
    G5   Mac OS X (10.3.9)   What I am missing here...?

    Hi:
    Use Compressor to get MPEG-2 encoding. You can go to Export Using Compressor opyion from inside FCP or go to Export Quicktime Movie (no QT Conversion) > Same settings > Self Contained (my flavour).
    Read this info:
    http://docs.info.apple.com/article.html?artnum=301871
    In Compressor use any of the standard DVD preset that match your project lenght and encode your audio to Dolby 2 (AC3) to save space and bandwidth in your DVD.
    Hope that helps !
      Alberto

  • How can we cretae the DBC file?

    Hi all,
    I am attempting to run the test_fwktutorial.jsp within the toolbox.jws/Tutorial.jpr project in Jdeveloper . We have to provide the Oracle application DB connection in the project properties ( we have to provide this as a DBC file) . How can we create the dbc file from the Database connection ? i tried to export the DB connection in Jdev , but it is getting exported to xml file rather than dbc file . Please help to fix this

    Yes, you can do that.
    Put both the DBC files under dbc_files\secure folder.
    You can change the dbc files from project settings and point to the desired file.
    I am not sure, but maybe you need to stop JDevloper and start again for the new DBC file to take effect.

  • I have the latest downloadable version of LR5.  It crashed while it was createing 1:1 previews during an import. After a Win7(64) restart, it shows a message that LR needs to quit because it can't read the preview files and it will try to fix it the next

    I have the latest downloadable version of LR5.  It crashed while it was createing 1:1 previews during an import. After a Win7(64) restart, it shows a message that LR needs to quit because it can't read the preview files and it will try to fix it the next time is launches.  I get the same message the next and every subsequent time it launches so I can't launch LR at all now.
    I get that the preview file got corrupted somehow.  Is there some way to fix this problem without building a new catalog?

    Use Windows Explorer to open the folder containing your catalog. You will see a folder with the extension .lrdata. You need to delete that folder and then start Lightroom again. Lightroom will generate a new previews folder.

  • TS2167 i'm getting an error message.. can't create the file "header.jpg." The disk may be damaged or full, or you may not have suuficient access priveleges.

    I need to publish to a local folder on my desk top and I am getting this error message.
    can’t create the file “header.jpg.” The disk may be damaged or full, or you may not have suuficient access priveleges.
    Please help... I need to copy to a disk... it was working fine until I attached a big project, I tried to delete the project, but still not workng.

    Try the following:
    1 - delete the iWeb preference file, com.apple.iWeb.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iWeb's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iWeb folder (Snow Leopard and Earlier).
    3 - launch iWeb and try again.
    NOTE:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    OT

  • How we can create the batch file to download the data in from URL in ssis

    hi,
    any one help on one the below requirement.
    i have to create one batch file to download the report(reports is in csv format) from URL...
    requirement should be like this...
    1. we have some reports is there in the URL..
    2.when ever we execute the url, the report should be download and save it to the local folder.
    3. this requirement i have to write in the batch file
    should any one let me know how we can create the batch file for the above requirement.

    Hi Priya.N,
    If you use SQL Server Reporting Services for reporting, you can use Visakh’s suggestion to create a script file which calls Reporting Services Web Service to render a report in CSV format and save a batch file to the destination folder, and then create a
    batch file to run the rs.exe utility which can executes the .rss script file. For more information, please see:
    Report Server Web Service
    ReportExecutionService.Render Method
    rs Utility (rs.exe) (SSRS)
    If you use other reporting tools, it depends on the reporting functionality and this requirement may be not achieved.
    Regards,
    Mike Yin
    TechNet Community Support

  • Iweb - Publish error - can't create the file "..."

    Hey guys,
    I've seen this issue in a couple of discussions but nothing helps. When I try to publish my site I'm getting the following error note:
    "Publish error. Can't create the file "...png". The disk may be damaged or full, or you may not have sufficient access privileges."
    Same result whether I publish to an ftp or to a local folder.
    My disk is far from full and the site is merely a few megas heavy.
    The content is just text and a few photos.
    I have OS version 10.6.8 and Iweb 3.0.4.
    No passwords involved.
    I've tried all the tricks in the book:
    Duplicating the page that won't publish.
    Re-creating the page that won't publish.
    Deleting com.apple.iweb.plist from home/library/preferences
    Moving my site domain to another location, creating a new site and then putting the old one back
    Deleting cache from libray/caches/com.apple.iweb
    I re-installed Ilife
    Reboots
    Banging head repeatedly again wall
    Any idea what could be causing this and how to fix it?
    Pleymo

    Try the following:
    delete the iWeb preference file, com.apple.iWeb.plist, that resides in your Home() /Library/Preferences folder.
    go to your Home()/Library/Caches/com.apple.iWeb folder and delete its contents.
    launch iWeb and try again.
    If that doesn't help continue with:
    move the domain file from your Home/Library/Application Support/iWeb folder to the Desktop.
    launch iWeb, create a new test site, save the new domain file and close iWeb.
    go to the your Home/Library/Application Support/iWeb folder and delete the new domain file.
    move your original domain file from the Desktop to the iWeb folder.
    launch iWeb and try again.
    OT

  • I'm creating an epk and I need to add a bio to the menu.  Can I import the text file or do I need to retype the bio somewhere?  What is the best way to proceed?

    I'm creating an epk and I need to add a bio to the menu.  Can I import the text file or do I need to retype the bio somewhere?  What is the best way to proceed?

    Electronic Press Kit.
    Usually in the form of video outtakes, movie trailers, cast and crew interviews. Basically, the stuff that gets bunged onto commercial DVDs as extras or ends up on late night TV "Making Of..." shows.
    To answer the OP, you want a button on the menu that leads to a still image, or series of them, set up as a slide show. You can copy/paste the text in DVD Studio and then add formatting via the Text menu. (Highlight the text and right click to access formatting controls). Or do it in a graphics application using the appropriate video image preset.

  • What's the fix for this error: Can't create the file "feed.xml."

    I try to publish my site from iWeb but I get an error which is below.
    Publish Error
    Can’t create the file “feed.xml.” The disk may be damaged or full, or you may not have sufficient access privileges.
    Anyone know the fix?

    Whether 'feed.xml' is the first file it is trying to upload, indicating a general failure to connect, or whether it's choked at that particular point would be the question. It would be worth your getting an FTP program if you don't already have one - Cyberduck is free - and checking whether any files at all have been uploaded.
    Is this the first time you've tried to publish or are you updating an existing site? If it's the first you should check carefully that your settings are correct, in particular the 'path' which varies between different hosts and may be blank or may be something like 'public.html' or 'htdocs' - this would lead to the actual webspace which may not be the root level as you access the FTP server.
    You could also try publishing to a local folder - create a special folder somewhere and specify it when setting iWeb to do this, check the contents are OK, then upload the contents of the folder (not the folder itself) using Cyberduck.

  • Publishing error Can't create the file "shapeimage_3_link_1.png."

    I keep getting this publishing error when i try to publish my sites to .mac:
    "Can’t create the file “shapeimage3_link1.png.” The disk may be damaged, full, or you may not have sufficient access privileges."
    I don't know what this means or how to fix it. I've been publishing my sites successfully for months now... please help!! Thank you.

    Here are some notes that may be of help to you:
    http://web.mac.com/mark8heaton/iWeb/PublishErrorsHelp/
    -Mark

  • Can't create the file "shapeimage_21.png."

    Hi,
    I am one of those people who still use iWeb...Recently I received the following message.  Publish Error Can't create the file "shape image_21." The disk may be damaged or full, or you may not have sufficient access privileges.  I did manage to get to iWeb's Library...but don't see a shape image_21.  I did remove 3 shape images but that didn't do it either. 
    What do I do?
    Please help....first time I've had problems with iWeb...like to continue...
    running on Yosemite imac

    Try the following:
    1 - delete the iWeb preference file, com.apple.iWeb.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete the contents of the User/Home/Library/Caches/com.apple.iWeb folder
    3 - launch iWeb and try again.
    NOTE: In Lion and Mountain Lion the Home/Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and press the Return key - 10.7: Un-hide the User Library folder.
    If you're running Mavericks or Yosemite  go to your Home folder and use the View ➙ Show View Options menu to bring the this window:

  • Cannot publish to folder - message says "Can't create the file...."

    Can't create the file "Momoola.com." The disk may be damaged, full or you may not have sufficient access privileges.
    I havent' changed anything since the last time I published to this folder. I ran Disk Utility and Repaired Permissions in case that was the problem, but I'm still getting the same error message.
    Don't think disk is damaged. Have about 7 gigs left on HD, so that's not it.
    Any ideas?

    I can offer a shotgun effect fix but don't know if any a definite fix for this. Try the following:
    close iWeb.
    delete the iWeb preference file, com.apple.iWeb.plist, that resides in your Home/Library/Preferences folder.
    go to your Home/Library/Caches/com.apple.iWeb folder and delete its contents.
    reboot.
    launch iWeb and try again.
    If that doesn't help continue with:
    move the domain file from your Home/Library/Application Support/iWeb folder to the Desktop.
    launch iWeb, create a new test site, save the new domain file and close iWeb.
    go to the your Home/Library/Application Support/iWeb folder and delete the new domain file.
    move your original domain file from the Desktop to the iWeb folder.
    launch iWeb and try again.
    OT

  • How can i create my own file from the Adobe Export PDF to Word ?

    How can I create my own file from the file of the Adobe Export PDF to Wodrd?

    If there is handwritten content in your PDF then ExportPDF can't convert that to word.
    ~Deepak

  • HT4075 I don't have any problems merging the documents by dragging, but when I try to save and open afterwards, only the last shown doc was saved, not the combined files I wanted to merge. I tried save and export, how can I create the file after merging?

    Hi, I'm having trouble saving the documents when merging in Preview. I don't have any problems merging the pdf documents by dragging them in preview, but when I try to save and open afterwards, only the last shown doc was saved, not the combined files I wanted to merge. I've tried save and export, but none merge the documents after saving... how can I create the file (with all the pdf files) after merging?

    That's a comment in the file. It has no effect at all.

Maybe you are looking for

  • 2nd Gen iPod will not charge in Windows 7 machine.

    My 2nd Gen ipod will sync to iTunes just fine, but will not charge.  Windows 7 shows a problem (yellow triangle) in Devices.  I've got the latest Windows Updates, iTunes version, and iPod update.  It works fine with our Windows Vista machines, just n

  • A/P Down Payment Invoice -With or Without Payment Duty

    Hi All, i am trying to add a A/P Down payment Invoice based on a purchase order.when a Excisable item is used in the down payment can be only made without payment of duty and the non-excisable item is used down payment can be can be made with / witho

  • Accessing select result in an SQL query

    I would like to know if anyone has a simple solution to this problem. I have a database with a table in it called events; the table has five fields: event_id, game_type_id, game_venue_id, game_day, and game_time. I would like to build a form that sel

  • Line input question

    I would like to be able to use my desktop speakers to listen to a satelitte radio receiver using the Mac Pro's line input and volume controls but I can not find a way to nake this audio "pass through" from the line input to the line output. I know th

  • OBIEE - How pause report and jobs - feed DW by ETL

    Hi Experts, I need to known, how can i block to run reports and existings jobs, during feeding my Data Warehouse by ETL. User could be schedule new job, but this job will be running after refresh data on DW. Thanks. Edited by: user9051847 on 2013-04-