Changeset 4839


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

Add 64-bit Linux compile command; use constant for number of JVM options.

File:
1 edited

Legend:

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

    r4838 r4839  
    3434    -L $JAVA_HOME/jre/lib/i386/client -ljvm 
    3535 
     36Compile on 64-bit Linux with: 
     37  c++ showinfJNI.cpp -o showinfJNI \ 
     38    -I $JAVA_HOME/include -I $JAVA_HOME/include/linux \ 
     39    -L $JAVA_HOME/jre/lib/amd64/server -ljvm 
     40 
    3641Then copy loci_tools.jar to the same folder and run: 
    3742  ./showinfJNI 
     
    6267  JavaVMInitArgs vm_args; 
    6368  JNI_GetDefaultJavaVMInitArgs(&vm_args); 
    64   JavaVMOption options[1]; 
     69  const int numOptions = 1; 
     70  JavaVMOption options[numOptions]; 
    6571  options[0].optionString = (char*) classpath.c_str(); 
    6672  //options[1].optionString = "-verbose:jni"; 
    6773  vm_args.version = JNI_VERSION_1_4; // VM version 1.4 
    6874  vm_args.options = options; 
    69   vm_args.nOptions = 1; 
     75  vm_args.nOptions = numOptions; 
    7076 
    7177  // load and initialize a Java VM, return a JNI interface pointer in env 
Note: See TracChangeset for help on using the changeset viewer.