CF Snippets

Load and use jar files from your CFML app

This configuration will ask the CFML engine to scan the specified directory every 30 seconds. Any jar files found will be loaded into the 'classpath' and accessible for use like any CFML component.


this.javaSettings = {
  loadPaths : "./libs/jars",
  reloadOnChange : true,
  watchInterval : "30"
};
// in your app, you can now reference classes from the jar files located in /libs/jars
// like JStrava: https://github.com/dustedrob/JStrava
var jStrava = new main.java.org.jstrava.api.JStravaV3();