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()); } }