2 Replies Latest reply on Apr 13, 2004 2:07 AM by SunForumsGuest7-MOS

    compilation of JNI programs

    SunForumsGuest7-MOS
      Hi there,

      am getting the following errors when compiling my JNI programs.

      HOME> cc -I/opt/java1.3/include -I/opt/java1.3/include/hp-ux -L/opt/java1.3/jre/lib/PA_RISC2.0/libjava.sl -ljava invoke.c
      cc: "invoke.c", line 34: warning 604: Pointers are not assignment-compatible.
      cc: "invoke.c", line 34: warning 563: Argument #2 is not the correct type.
      /usr/ccs/bin/ld: Can't find library: "java"


      The invoke.c program is from http://java.sun.com/docs/books/tutorial/native1.1/invoking/invo.html
      Have set my CLASSPATH to include the *.h and libjava.sl files. Am using JVM 1.3.1 on HU-UX.

      Appreciate any help here. Thank you.

      - Sakthi