Skip to content

Commit 24f3343

Browse files
committed
chicken and egg issue
1 parent 0e22581 commit 24f3343

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/main/java/ortus/boxlang/runtime/BoxRuntime.java

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,16 @@ private void startup( Boolean debugMode ) {
469469
loadConfiguration( debugMode, this.configPath );
470470
// Anythying below might use configuration items
471471

472+
// Ensure home assets
473+
ensureHomeAssets();
474+
475+
// Load the Dynamic Class Loader for the runtime
476+
this.runtimeLoader = new DynamicClassLoader(
477+
Key.runtime,
478+
getConfiguration().getJavaLibraryPaths(),
479+
this.getClass().getClassLoader(),
480+
true );
481+
472482
// Announce it to the services
473483
this.interceptorService.onConfigurationLoad();
474484
this.asyncService.onConfigurationLoad();
@@ -480,17 +490,8 @@ private void startup( Boolean debugMode ) {
480490
this.schedulerService.onConfigurationLoad();
481491
this.dataSourceService.onConfigurationLoad();
482492

483-
// Ensure home assets
484-
ensureHomeAssets();
485-
486-
// Load the Dynamic Class Loader for the runtime
487-
this.runtimeLoader = new DynamicClassLoader(
488-
Key.runtime,
489-
getConfiguration().getJavaLibraryPaths(),
490-
this.getClass().getClassLoader(),
491-
true );
492493
// Startup the right Compiler
493-
this.boxpiler = chooseBoxpiler();
494+
this.boxpiler = chooseBoxpiler();
494495
// Seed Mathematical Precision for the runtime
495496
MathUtil.setHighPrecisionMath( getConfiguration().useHighPrecisionMath );
496497

0 commit comments

Comments
 (0)