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 8094191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:43:20+00:00 2026-06-05T20:43:20+00:00

comrade@hp:~/workspace/JNI2/src$ ls Prompt.c Prompt.class Prompt.h Prompt.java comrade@hp:~/workspace/JNI2/src$ gcc –shared -o libPrompt.so -I/usr/lib/jvm/java-6-openjdk-i386/include -I/usr/lib/jvm/java-6-openjdk-i386/include/linux -lX11

  • 0
comrade@hp:~/workspace/JNI2/src$ ls
Prompt.c  Prompt.class  Prompt.h  Prompt.java

comrade@hp:~/workspace/JNI2/src$ gcc --shared -o libPrompt.so -I/usr/lib/jvm/java-6-openjdk-i386/include -I/usr/lib/jvm/java-6-openjdk-i386/include/linux -lX11 Prompt.c /usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386/server/libjvm.so
Prompt.c:2:20: fatal error: Prompt.h: No such file or directory
compilation terminated.


Prompt.c :  
#include <jni.h>
#include <Prompt.h>
........

What I don’t undestand?

  • 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-05T20:43:22+00:00Added an answer on June 5, 2026 at 8:43 pm

    As commented, change to:

    #include "Prompt.h"
    

    From The #include directive:

    #include <file>
        This variant is used for system header files.
        It searches for a file named file in a list of directories
        specified by you, then in a standard list of system directories.
        You specify directories to search for header files with the
        command option `-I' (see section 1.9 Invoking the C Preprocessor).
        The option `-nostdinc' inhibits searching the standard system
        directories; in this case only the directories you specify are searched.
    
    #include "file"
        This variant is used for header files of your own program.
        It searches for a file named file first in the current directory,
        then in the same directories used for system header files.
        The current directory is the directory of the current input file.
        It is tried first because it is presumed to be the location of the
        files that the current input file refers to.
        (If the `-I-' option is used, the special treatment of the
         current directory is inhibited.)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm just transitioning from .NET to JAVA and have to start JAVA project with
Let's consider this FOR loop in a Windows batch script: D:\MiLu\Dev\C++\temp :: type string.bat
One of our comrades, Peter Mortensen , asked a question on Super User about an
Comrades, The following does not work: vector<string>::iterator c; for( c = holdtype.begin(); c !=
Let me explain what I mean in my title. Let's say, that for example
I was asked the following Question: How would you store the data given below(which
I am working on a comment voting system. I have a page profile_new.php?id=194 That
Greetings great SO comrades; I'm trying to use this code to make changes to
According to the Ruby docs for Time#zone : As of Ruby 1.8, returns UTC
comrades) I've found some interesting behavior of Invalidate method in multithreaded applications. I hope

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.