我正在安装FACT++库,但是当我安装make时,我会得到以下错误:
cc1plus: warning: /usr/lib/jvm/java-11-openjdk-amd64/include/jni.h: not a directory
In file included from Axioms.cpp:21:0:
uk_ac_manchester_cs_factplusplus_FaCTPlusPlus.h:2:10: fatal error: jni.h: No such file or directory
#include <jni.h>
我试图在Ubuntu12.04.5LTS上构建stanford的python接口。需要采取两个步骤,第一个步骤是:
通过在3 3rdParty/jpype中运行"rake安装程序“来编译Jpype
这样做时,我会得到以下错误:
In file included from src/native/common/jp_monitor.cpp:17:0:
src/native/common/include/jpype.h:45:17: fatal error: jni.h: No such file or directory
compilation terminated.
erro
我正在尝试使用上的指令为Open MPI构建Java接口。
解压并导航到openmpi-1.8.7目录后,输入
./configure --enable-mpi-java
返回的
*** Java compiler
checking OSX locations... not found
checking Linux locations... not found
checking Solaris locations... not found
checking Java support available... no
*** Java MPI bindings
checking if want
我正在尝试make ,并遵循Maven段落中的说明。然而,我在这一步失败了
make clean all
有以下错误:
ObjectManager.c:35:17:致命错误: jni.h:没有这样的文件或目录
#include <jni.h>
因此,在和的回答之后,我试图将jni.h文件的位置添加到编译器标志中。在我的例子中,这个文件位于
/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/include
到目前为止,我已经尝试过:
make -I/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/include
我试图使用JNI在我朋友的64位OSX上以最简单的方式连接Java和C,但我得到了这个错误。下面是所有涉及到的内容:
test.java
public class test {
static {System.loadLibrary ("test");}
native void aaa ();
public static void main (String [] args) {
new test ();
}
public test () {
aaa ();
}
}
test.h
/* DO N
我正在尝试使用Android在windows上构建一个GStreamer应用程序,使用他们网站上的教程,但是,正如在其他问题中已经提到的,这些教程并不是最新的,似乎也不适用于Android。我遵循了Eduardo 在:上提出的教程,但是它不会构建,因为我无法解决jni.h文件找不到的问题。
> Build command failed.
Error while executing process
C:\Users\spomerleau\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with
arguments {NDK_PROJ
在Ubuntu12.04中,我安装了来自sun/oracle的jdk7。当为locate jni.h时,它会打印多个位置
/usr/lib/jvm/java-6-openjdk-amd64/include/jni.h
/usr/lib/jvm/jdk1.7.0_07/include/jni.h
...
fatal error: jni.h: No such file or directory.
在我的Makefile中,没有指定jni.h所在的位置。我在问是否可以配置某些系统参数,以便在编译时知道jni.h (比如/usr/lib/jvm/jdk1.7.0_07/include/jni.h)
我正在创建一个c++动态库,以便在java中的一个原生类中使用,我已经使用javah.exe为该类生成了一个头文件,并为它创建了c接口类,但是当我试图对文件进行压缩或构建项目时,我会得到以下错误
/cygdrive/c/Program Files/Java/jdk1.7.0_25/include/jni.h:339:72: error: 'jlong' declared as function returning a function
/cygdrive/c/Program Files/Java/jdk1.7.0_25/include/jni.h:416:20: error:
我想安装斯坦福解析器的python接口。
在首先运行rake设置安装jpype时,我保留ge。
In file included from src/native/common/jp_reference.cpp:1:0:
src/native/common/include/jpype.h:45:17: schwerwiegender Fehler: jni.h: Datei oder Verzeichnis nicht gefunden
Kompilierung beendet.
error: command 'gcc' failed with exit status
在编译本机代码库时,我得到了以下错误-
<NDK-HOME>/platforms/android-17/arch-arm/usr/include/jni.h:235:68: error: expected ';' at end of member declaration
<NDK-HOME>/platforms/android-17/arch-arm/usr/include/jni.h:235:70: error: '\__NDK_FPABI__' does not name a type
...
重复了很多次。
与月台有关的详情如下-
我正在尝试编译以下项目:
https://github.com/entropia/libsocket-can-java
我总是收到这个错误信息吗?有没有人知道如何修复它,这可能是Linux上JDK1.8.0.11 (x64 Debian Wheezy)中的一个bug?
In file included from jni/de_entropia_can_CanSocket.h:2:0,
from jni/cansocket.cpp:23:
/opt/jdk1.8.0_11/include/jni.h:45:20: fatal error: jni_md.h: No su
当我创建以下文件时,我对java很陌生,并且目前正在学习本机方法:
Main.java
public class Main {
public native int intMethod(int i);
public static void main(String[] args) {
System.loadLibrary("Main");
System.out.println(new Main().intMethod(2));
}
}
Main.c
#include <jni.h>
#include "Ma
当我运行包安装时,我会得到以下错误。上面写着检查mkmf.log文件。如何定位mkmf.log文件?
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/.rubies/ruby-2.1.3/bin/ruby -r ./siteconf20150228-3404-1f8s19v.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of nece
我想从C++调用包含Android SDK类的Java代码。我可以为desktop console application从C++调用纯Java代码。但是我不能从C++ for Android中调用包含Android SDK类的Java代码(我得到这个错误:JNI_CreateJavaVM was not declared in this scope.)。我想要一个安卓Java Native Interface的例子。你有关于Android的JNI的例子吗?此外,我发现JNI示例和代码只适用于桌面,而不适用于Android。我还发现了不同的jni.h和libjvm.so文件位置:
jni.h
我在stackoverflow上四处寻找类似的问题,但我找到的解决方案似乎都不适合我。我在Linux/Ubuntu机器上。我只是在练习JNI,但是我得到了这个错误:
Exception in thread "main" java.lang.UnsatisfiedLinkError: nativetest.sayHello(Ljava/lang/String;)Ljava/lang/String;
at nativetest.sayHello(Native Method)
at nativetest.main(nativetest.java:8)
我已经提供了我的.c、.h和.j