Bug#630580: sun-java6-jdk: jni.h does not find jni_md.h

Andrew Ross andrew at rossfamily.co.uk
Wed Jun 15 17:33:21 UTC 2011


On 15/06/11 12:29, Marius Brehler wrote:
> Package: sun-java6-jdk
> Version: 6.24-1~squeeze1
> Severity: normal
> 
> /usr/lib/jvm/java-6-sun/include/jni.h includes jni_md.h in line 27:
>   #include "jni_md.h"
> 
> The jni_md.h is located at /usr/lib/jvm/java-6-sun/include/linux/jni_md.h,
> so this line should be:
>   #include "linux/jni_md.h"
> 

Hi Marius,

I believe this is the intended behaviour, since jni.h is common over all
platforms, and so, for example, on windows the correct include is
include/win32/jni_md.h

When building your code you can just have both
-I/usr/lib/jvm/java-6-sun/include/ and
-I/usr/lib/jvm/java-6-sun/include/linux/ to set your include paths.

Thanks,
Andy





More information about the pkg-java-maintainers mailing list