Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

D

depierce

@depierce
Unfollow Follow
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • configure: error: *** Cannot find jni.h - check your JDK installation ***
    D depierce
    Support

    Hi, Victor.

    Actually I tried specifying with --with-jdk /usr/lib/jvm/java-8-oracle and also appending /include to path - neither worked.  Don't know if it's a limitation of the configure function to check java version but installing the gjc packages did the trick.


  • configure: error: *** Cannot find jni.h - check your JDK installation ***
    D depierce
    Support

    Having a tough time figuring out how to get configure to see my JDK install.  Tried below with --includedir=/usr/lib/jvm/java-8-oracle as well.
    Edit: This is trying to build netxms-2.0-RC2 on Ubuntu 12.04.5 with Oracle's Java SDK version 1.8 installed.

    sh ./configure --prefix=/opt/netxms --with-server --with-snmp --with-client --with-client-proxy --with-agent --disable-ipv6 --with-jdk --with-mysql --with-openssl --with-gnu-ld
    ...
    configure: error: *** Cannot find jni.h - check your JDK installation ***

    java -version
    java version "1.8.0_66"
    Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
    Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)

    DERBY_HOME=/usr/lib/jvm/java-8-oracle/db
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/usr/lib/jvm/java-8-oracle/include
    JAVA_HOME=/usr/lib/jvm/java-8-oracle
    J2SDKDIR=/usr/lib/jvm/java-8-oracle
    J2REDIR=/usr/lib/jvm/java-8-oracle/jre

    UPDATE/SOLVE:
    On a hunch that configure needs gcj glue to "find" java headers, went ahead and installed java-gcj-compat-headless and java-gcj-compat-dev and all dependencies.  Configure works now.

  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups