xref: /aosp_15_r20/external/javassist/sample/evolve/start.html (revision f1fbf3c2ab775ce834e0af96b7a85bdc7a0eac65)
1*f1fbf3c2SXin Li<h2>Instructions</h2>
2*f1fbf3c2SXin Li
3*f1fbf3c2SXin Li<p>1. Compile <code>sample/evolve/*.java</code>.
4*f1fbf3c2SXin Li
5*f1fbf3c2SXin Li<p>2. change the current directory to <code>sample/evolve</code><br>
6*f1fbf3c2SXin Liand compile there <code>sample/evolve/WebPage.java</code><br>
7*f1fbf3c2SXin Li(i.e. compile <code>sample/evolve/sample/evolve/WebPage.java</code>).
8*f1fbf3c2SXin Li
9*f1fbf3c2SXin Li<p>The two versions of <code>WebPage.class</code> are used<br>
10*f1fbf3c2SXin Lifor changing the contents of <code>WebPage.class</code> during
11*f1fbf3c2SXin Lithe demo.
12*f1fbf3c2SXin Li
13*f1fbf3c2SXin Li<p>3. Run the server on the local host (where your web browser is running):
14*f1fbf3c2SXin Li
15*f1fbf3c2SXin Li<ul>
16*f1fbf3c2SXin Li<code>% java sample.evolve.DemoLoader 5003
17*f1fbf3c2SXin Li</code></ul>
18*f1fbf3c2SXin Li
19*f1fbf3c2SXin Li<p>4. Click below:
20*f1fbf3c2SXin Li
21*f1fbf3c2SXin Li<ul><h2><a href="http://localhost:5003/demo.html">
22*f1fbf3c2SXin LiStart!
23*f1fbf3c2SXin Li</a></h2></ul>
24