Changeset 4840


Ignore:
Timestamp:
02/24/09 15:16:49 (11 years ago)
Author:
curtis
Message:

Tweaks to the showinfJNI standalone example:

  • Include stdlib.h for exit function;
  • Include instructions on setting LD_LIBARY_PATH if necessary.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/native/bf-cpp/source/showinfJNI.cpp

    r4839 r4840  
    3434    -L $JAVA_HOME/jre/lib/i386/client -ljvm 
    3535 
     36Depending on your flavor of 32-bit Linux, you may also need to execute: 
     37  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JAVA_HOME/jre/lib/i386/client 
     38 
    3639Compile on 64-bit Linux with: 
    3740  c++ showinfJNI.cpp -o showinfJNI \ 
     
    3942    -L $JAVA_HOME/jre/lib/amd64/server -ljvm 
    4043 
     44Depending on your flavor of 64-bit Linux, you may also need to execute: 
     45  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JAVA_HOME/jre/lib/amd64/server 
     46 
    4147Then copy loci_tools.jar to the same folder and run: 
    4248  ./showinfJNI 
    4349*/ 
    4450 
    45 #include <jni.h> 
    46  
    4751#include <iostream> 
    4852using namespace std; 
     53 
     54#include <stdlib.h> 
     55 
     56#include <jni.h> 
    4957 
    5058int main(int argc, char* argv[]) { 
Note: See TracChangeset for help on using the changeset viewer.