@@ -177,25 +177,23 @@ public static void setup() throws RuntimeException {
177177 JOURNEY_LOADER_LISTENER .loadedNativeCEFFiles ();
178178
179179 JOURNEY_LOADER_LISTENER .loadingJCEF ();
180- if ("online" .equals (MODE )) {
181- File gluegenRtJar ;
182- File joglAllJar ;
183- File jcefJar ;
184- if (osName .toLowerCase ().startsWith ("mac" )) {
185- gluegenRtJar = new File (NATIVE_DIRECTORY , "jcef_app.app/Contents/Java/gluegen-rt.jar" );
186- joglAllJar = new File (NATIVE_DIRECTORY , "jcef_app.app/Contents/Java/jogl-all.jar" );
187- jcefJar = new File (NATIVE_DIRECTORY , "jcef_app.app/Contents/Java/jcef.jar" );
188- } else {
189- gluegenRtJar = new File (NATIVE_DIRECTORY , "gluegen-rt.jar" );
190- joglAllJar = new File (NATIVE_DIRECTORY , "jogl-all.jar" );
191- jcefJar = new File (NATIVE_DIRECTORY , "jcef.jar" );
192- }
193- JOURNEY_CLASS_LOADER = new JourneyLoader (
194- new URL []{gluegenRtJar .toURL (), jcefJar .toURL (), joglAllJar .toURL ()},
195- Thread .currentThread ().getContextClassLoader ());
196- JOURNEY_CLASS_LOADER .loadJar (gluegenRtJar );
197- JOURNEY_CLASS_LOADER .loadJar (jcefJar );
180+ File gluegenRtJar ;
181+ File joglAllJar ;
182+ File jcefJar ;
183+ if (osName .toLowerCase ().startsWith ("mac" )) {
184+ gluegenRtJar = new File (NATIVE_DIRECTORY , "jcef_app.app/Contents/Java/gluegen-rt.jar" );
185+ joglAllJar = new File (NATIVE_DIRECTORY , "jcef_app.app/Contents/Java/jogl-all.jar" );
186+ jcefJar = new File (NATIVE_DIRECTORY , "jcef_app.app/Contents/Java/jcef.jar" );
187+ } else {
188+ gluegenRtJar = new File (NATIVE_DIRECTORY , "gluegen-rt.jar" );
189+ joglAllJar = new File (NATIVE_DIRECTORY , "jogl-all.jar" );
190+ jcefJar = new File (NATIVE_DIRECTORY , "jcef.jar" );
198191 }
192+ JOURNEY_CLASS_LOADER = new JourneyLoader (
193+ new URL []{gluegenRtJar .toURL (), jcefJar .toURL (), joglAllJar .toURL ()},
194+ Thread .currentThread ().getContextClassLoader ());
195+ JOURNEY_CLASS_LOADER .loadJar (gluegenRtJar );
196+ JOURNEY_CLASS_LOADER .loadJar (jcefJar );
199197 if (chromiumMajorVersion >= 73 ) {
200198 Method method = JOURNEY_CLASS_LOADER .loadClass ("org.cef.CefApp" ).getMethod ("startup" );
201199 method .invoke (null );
0 commit comments