setLoadJavaClassesUsing - cfsimplicity/spreadsheet-cfml GitHub Wiki

For the current spreadsheet library instance, specifies how classes from the supporting java libraries should be loaded.

setLoadJavaClassesUsing( method )

Required arguments

  • method string: one of the following:
    • osgi: Classes will be loaded from the bundled lib-osgi.jar. The default for Lucee and only supported by Lucee.
    • JavaLoader: Classes will be loaded from the /lib folder via JavaLoader. The default for Adobe ColdFusion.
    • dynamicPath: Classes will be loaded from the /lib folder by passing the path as an argument to CreateObject(). Not supported by Adobe ColdFusion.
    • javaSettings or classPath: Classes will be loaded using CreateObject() with the assumption that you have made the contents of the /lib folder available to the engine via your application's javaSettings or by adding them to the class path.

Note

You can also pass in the value via the init() method.

Example 1

spreadsheet = New spreadsheetCFML.spreadsheet();
spreadsheet.setLoadJavaClassesUsing( "javaSettings" )

Example 2: via the init() method

spreadsheet = New spreadsheetCFML.spreadsheet( loadJavaClassesUsing="javaSettings" );

Related

Loading the POI java libraries