All pastes #993475 Raw Edit

java.library.path problems(java

public java v1 · immutable
#993475 ·published 2008-04-22 17:25 UTC
rendered paste body
import java.io.File;import java.util.Properties; public class Main {   public static void main(String argv[]) {       Properties p = System.getProperties();       //p.list(System.out);       String path = p.getProperty("java.library.path");       System.out.println(path);       File build = new File(path);       for(String s : build.list())           System.out.println(s);       System.out.println(System.mapLibraryName("example_java"));       System.loadLibrary("example_java");       // System.load("/home/vegas/Documents/Academic/Masters_Thesis/code/Swig_Expt/build/libexample_java.so.1.01");       System.out.println(example.getMy_variable());       System.out.println(example.fact(5));       System.out.println(example.get_time());   } }