All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.jhuapl.ses.vtkjavanativelibs.Demo_SelectPlatform Maven / Gradle / Ivy

The newest version!
package edu.jhuapl.ses.vtkjavanativelibs;

import java.io.File;
import java.util.ServiceLoader;

public class Demo_SelectPlatform {

  public static void main(String[] args) {
    ServiceLoader implLoader =
        ServiceLoader.load(VtkNativeLibrariesImpl.class);
    
    int k = 0;
    for (VtkNativeLibrariesImpl impl : implLoader) {
      k++;
      System.out.println(impl);
      
      System.out.println(impl.getJoglLibraries());
      //System.out.println(impl.getVtkLibraries());

    }
    
    System.out.println("Found " + k + " implementations");
    
    //System.out.println("Current -Djava.library.path=" + System.getProperty("java.library.path"));
    
    String classpath = System.getProperty("java.class.path");
    
    
    // Get all class path enteries in a string array
    /*String[] classpathEntries = classpath.split(File.pathSeparator);
    for(String e: classpathEntries) {
      System.out.println(e);
    }*/
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy