Summary
Both tools/run_tests.sh and tools/run_tests.bat build a CLS_PATH/%CLS_PATH% variable that includes the JOGL jars (third_party/jogamp/jar/*), but the actual java invocation only ever passed $OUT_PATH/%OUT_PATH% to -cp -- CLS_PATH was computed and then never used. Separately, even fixing that naively hits a second issue: -jar and -cp together mean the JVM's own classpath handling is bypassed (the JUnit console launcher parses its own -cp/--class-path argument instead), and that parser does not expand a trailing /* into a jar list the way the real java launcher's -cp does -- so the jars have to be listed explicitly, not glob-referenced.
Impact
Any OSR-based JUnit test fails with NoClassDefFoundError: com/jogamp/opengl/awt/GLCanvas when run via the official script, since org.cef.browser.CefBrowserFactory needs JOGL classes for OSR (CefBrowserOsr). This presumably went unnoticed because no OSR-based JUnit test existed until this fork added one (OsrSmokeTest, see #2) -- the existing tests (DisplayHandlerTest, DragDataTest, TestFrameTest) all used windowed mode, which doesn't need JOGL.
Fix (in #2)
Explicitly enumerate the jars from third_party/jogamp/jar/*.jar into the classpath string passed to -cp, in both scripts.
Summary
Both
tools/run_tests.shandtools/run_tests.batbuild aCLS_PATH/%CLS_PATH%variable that includes the JOGL jars (third_party/jogamp/jar/*), but the actualjavainvocation only ever passed$OUT_PATH/%OUT_PATH%to-cp--CLS_PATHwas computed and then never used. Separately, even fixing that naively hits a second issue:-jarand-cptogether mean the JVM's own classpath handling is bypassed (the JUnit console launcher parses its own-cp/--class-pathargument instead), and that parser does not expand a trailing/*into a jar list the way the realjavalauncher's-cpdoes -- so the jars have to be listed explicitly, not glob-referenced.Impact
Any OSR-based JUnit test fails with
NoClassDefFoundError: com/jogamp/opengl/awt/GLCanvaswhen run via the official script, sinceorg.cef.browser.CefBrowserFactoryneeds JOGL classes for OSR (CefBrowserOsr). This presumably went unnoticed because no OSR-based JUnit test existed until this fork added one (OsrSmokeTest, see #2) -- the existing tests (DisplayHandlerTest,DragDataTest,TestFrameTest) all used windowed mode, which doesn't need JOGL.Fix (in #2)
Explicitly enumerate the jars from
third_party/jogamp/jar/*.jarinto the classpath string passed to-cp, in both scripts.