Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

C++: jni.h: no such file or directory #28

Open
jwenjian opened this issue Jun 5, 2019 · 1 comment
Open

C++: jni.h: no such file or directory #28

jwenjian opened this issue Jun 5, 2019 · 1 comment

Comments

@jwenjian
Copy link
Owner

jwenjian commented Jun 5, 2019

C++代码中:

#include <jni.h>

Visual studio运行报错:

Cannot open include file: 'jni.h': No such file or directory

解决步骤(Visual Studio 2019):

  1. Project -> Properties -> VC++ Directories
    image

  2. 修改Include Didrectories, 添加本地${JAVA_HOME}/include${JAVA_HOME}/include/win32目录:
    image

@xyyczz
Copy link

xyyczz commented Jun 23, 2020

${JAVA_HOME} should change to $(JAVA_HOME)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants