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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:18:01+00:00 2026-06-12T06:18:01+00:00

Trying to build a simple helloWorld android/java application with jni c code. I am

  • 0

Trying to build a simple helloWorld android/java application with jni c code. I am using Eclipse Indigo on Windows 7. Installed ndk r8 in a non-space path, have the c library finally building fine with ndk-build.cmd. However, the header file generated by javah has unresolved errors,

  • Type ‘jint’ could not be resolved
  • Type ‘JNIEnv’ could not be resolved
  • Type ‘jclass’ could not be resolved

It wasn’t seeing the jni.h include yesterday but after a reboot this morning, that error has disappeared. I had an unresolved JNIEXPORT and JNICALL error as well, but #defining them seems to have solved that. Stuck on the last 3 above.
Have searched google and Stack Overflow for answers but as soon as someone finds a solution they don’t say what that solution was 🙁

I’ve checked the includes in java and c/c++ perspectives in project properties. It seems to be including jni.h directories that I want, I’m using the android-14 for arm platforms. The target is a 4.0.3 IceCream Sanwich (which confusingly is API 15?!). I was going to try and use an AVD for testing this.
I’ve tried closing/reopening the project, deleting from Eclipse and reimporting, but none of that has worked.

Am I missing some includes? Which ones and where should I set them?
Would really appreciate some help.

  • 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-12T06:18:02+00:00Added an answer on June 12, 2026 at 6:18 am

    Recently I’ve faced with the same problem. In my case the problem was that I converted my Eclipse project to C++ project, but I had used C type. So to solve this problem I simply deleted the line <nature>org.eclipse.cdt.core.ccnature</nature> from .project file from the project directory:

    <natures>
     <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
     <nature>org.eclipse.jdt.core.javanature</nature>
     <nature>org.eclipse.cdt.core.cnature</nature>
     <nature>org.eclipse.cdt.core.ccnature</nature>
     <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
     <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
     <nature>edu.umd.cs.findbugs.plugin.eclipse.findbugsNature</nature>
    </natures>
    

    Then restart your Eclipse. For more information you can read this.

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

Sidebar

Related Questions

I'm trying to build a simple HTML text editor in a Windows Form application.
I am trying to build a simple custom editor in the Eclipse environment. To
We are trying to build simple transacted jms-to-jms router using Mule ESB and JBoss
I'm trying to build simple facebook application with 4.2.1 C# SDK. But I have
Im trying to build a simple, lightweight product viewer using jquery. I have a
I'm trying to compile a simple 32-bit Hello World application written in C using
I'm trying to make a simple hello-world executable python gui app in windows using
I am trying to build a Web application using jQuery Mobile. When testing on
I am new to RoR and I am trying to build simple web application
I just started trying to build simple GUIs because I've always used command-line script

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.