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

  1. Home
  2. Support (Russian)
  3. configure with-jdk

configure with-jdk

Scheduled Pinned Locked Moved Support (Russian)
4 Posts 2 Posters 20.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    J
    joni
    wrote on last edited by
    #1

    java-1.7.0-openjdk-devel.x86_64
    netxms-2.0-m3

    ll /usr/lib/jvm/java/jre/lib/amd64/server/
    total 37028
    -r--r--r-- 1 root root 25382912 Apr 13 10:02 classes.jsa
    lrwxrwxrwx 1 root root       13 Apr 13 10:02 libjsig.so -> ../libjsig.so
    -rwxr-xr-x 1 root root 12525760 Feb 27 07:03 libjvm.so
    -rw-r--r-- 1 root root     1423 Feb 27 06:51 Xusage.txt
    

    Использовал
    # для libjvm, но не работает, что я делаю не так ?

    LDFLAGS="-L/usr/lib/jvm/java/jre/lib/ -L/usr/lib/jvm/java/jre/lib/amd64/server/"
    

    # для jni.h

    for i in -I/usr/lib/jvm/java/include{,/linux}; do
          java_inc="$java_inc $i"
    done
    CPPFLAGS="$java_inc $CPPFLAGS"
    export LDFLAGS CPPFLAGS
    

    ./configure --prefix=/opt/netxms --with-client --with-server --with-agent --with-pgsql --with-openssl --with-snmp --with-jdk

    В итоге получаю ошибку

    checking jni.h usability... yes
    checking jni.h presence... yes
    checking for jni.h... yes
    checking for SQLAllocHandle in -ljvm... no
    configure: error: libjvm is required for Java support
    
    1 Reply Last reply
    0
    • J
      J
      joni
      wrote on last edited by
      #2
      readelf -s jre-1.8.0-openjdk-1.8.0.20-3.b26.el6.x86_64/lib/amd64/server/libjvm.so | grep -i SQLAllocHandle
      

      может эта проверка не нужна в принципе для этой либы ?

      1 Reply Last reply
      0
      • A
        A
        Alex Kirhenshtein
        wrote on last edited by
        #3

        Это ошибка в configure.
        Должна быть проверка на JNI_CreateJavaVM, а не SQLAllocHandle

        1 Reply Last reply
        0
        • J
          J
          joni
          wrote on last edited by
          #4

          спасибо!

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • 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