<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>Replay doesn't run the app, so you'll need to extract all the
      embedded jar files that it needs and add them to the -cp path.</p>
    <p><br>
    </p>
    <p>dl</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 4/15/24 2:02 PM, Cao, Joshua wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:8afd46e5d0264365a8de42cea7b39585@amazon.com">
      
      <style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
      <div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
        <div>I am trying to reproduce the error in</div>
        <div><a class="moz-txt-link-freetext" href="https://bugs.openjdk.org/browse/JDK-8329797">https://bugs.openjdk.org/browse/JDK-8329797</a> using the given
          replay file. I get</div>
        <div>the following error:</div>
        <div><br>
        </div>
        <div>```</div>
        <div>dev-dsk-joshcao-2b-df0d3645
          [home/joshcao/src/dacapobench/release]$
          ~/jdk/shenandoah/build/linux-x86_64-server-slowdebug/images/jdk/bin/java
          -cp dacapo-23.8-chopin-RC1/jar/lib/h2/h2-2.1.214.jar
          -XX:+UseShenandoahGC -XX:+ReplayCompiles
          -XX:ReplayDataFile=maxlreplay.log -jar
          dacapo-23.8-chopin-RC1.jar h2</div>
        <div>java.lang.NoClassDefFoundError: org/h2/index/Index</div>
        <div>Error while parsing line 6 at position 33:
          org/h2/index/Index</div>
        <div><br>
        </div>
        <div>java.lang.NoClassDefFoundError: org/h2/index/Index</div>
        <div>Caused by: java.lang.ClassNotFoundException:
          org.h2.index.Index</div>
        <div>        at
jdk.internal.loader.BuiltinClassLoader.loadClass(<a class="moz-txt-link-abbreviated" href="mailto:java.base@23-internal/BuiltinClassLoader.java:641">java.base@23-internal/BuiltinClassLoader.java:641</a>)</div>
        <div>        at
jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(<a class="moz-txt-link-abbreviated" href="mailto:java.base@23-internal/ClassLoaders.java:188">java.base@23-internal/ClassLoaders.java:188</a>)</div>
        <div>        at
java.lang.ClassLoader.loadClass(<a class="moz-txt-link-abbreviated" href="mailto:java.base@23-internal/ClassLoader.java:528">java.base@23-internal/ClassLoader.java:528</a>)</div>
        <div><br>
        </div>
        <div>Failed on org/h2/index/Index</div>
        <div>```</div>
        <div><br>
        </div>
        <div>I got the dacapo jar file from</div>
        <div><a class="moz-txt-link-freetext" href="https://github.com/dacapobench/dacapobench/releases/tag/v23.9-RC1-chopin">https://github.com/dacapobench/dacapobench/releases/tag/v23.9-RC1-chopin</a>.
          The</div>
        <div>`h2` classes are located in
          `dacapo-23.8-chopin-RC1/jar/lib/h2/h2-2.1.214.jar`.</div>
        <div>I guess the replay mechanism cannot find those classes.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Any tips on how to fix the `NoClassDefFoundError`?</div>
        <div><br>
        </div>
        <br>
        <p><span></span></p>
      </div>
    </blockquote>
  </body>
</html>