Skip to content

Commit 8a21e81

Browse files
patrick96fniephaus
authored andcommitted
Add additional explanation
1 parent 9d898c7 commit 8a21e81

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

native-image/wasm-javac/web/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,21 @@
1010
<title>Javac on WebAssembly</title>
1111
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
1212
<style type="text/css">
13+
body {
14+
font-family: Arial, Helvetica, sans-serif;
15+
color: #ffffff;
16+
}
17+
1318
#content {
1419
margin: 0 auto;
1520
width: 900px;
1621
padding-top: 40px;
1722
}
1823

24+
a {
25+
color: #ffffff;
26+
}
27+
1928
#source {
2029
box-shadow: 0px 4px 6px #1f9ddcb8;
2130
&[contenteditable="false"] {
@@ -153,6 +162,8 @@
153162
</div>
154163
<div class="gen-back">
155164
<div id="content">
165+
<span>This demo can turn Java source code into JVM bytecode, which you can then download or disassemble. For this, the demo uses the Java compiler (javac) on WebAssembly generated by GraalVM. It was shown as part of <a href="https://2025.wasm.io/sessions/the-future-of-write-once-run-anywhere-from-java-to-webassembly/" target="_blank">this talk</a> at Wasm I/O 2025.<br>
166+
Note: This version of the demo has some rough edges, but we might improve it over time. Currently, the content of this text box will be written into a <code>HelloWasm.java</code> file. A valid program needs to use <code>public class HelloWasm</code> or only declare non-public classes.</span>
156167
<pre id="source" contenteditable="false" spellcheck="false">
157168
public class HelloWasm {
158169
public static void main(String[] args) {

0 commit comments

Comments
 (0)