summaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
authorJonas Kohl2024-11-08 13:03:33 +0100
committerJonas Kohl2024-11-08 13:03:33 +0100
commitf506adbdb89119872da679a6ae5cd157ee173b0a (patch)
treee6c405662ce1849e820d6f6c969d2c9a1e48cbfa /public/index.php
parent367b301744ef0bfb164d85f4f7017c0aaf3c783a (diff)
Add Java version and clarify limitationsHEADmain
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php
index a7f9674..f0bbf78 100644
--- a/public/index.php
+++ b/public/index.php
@@ -175,7 +175,15 @@ $csrf = csrf_token();
<div id="spinner"></div>
</div>
<h1>&#9749;&#65039; Java Compiler</h1>
- <p>Powered by Eclipse Temurin</p>
+ <p>Powered by Eclipse Temurin 23.</p>
+ <p>
+ <strong>Limitations:</strong>
+ Compilation and execution time is limited to 30 seconds each.
+ Your program won't have any network access and RAM is limited to 32 MiB.
+ Source code size is limited to 16 KiB. Files will not be persisted between executions.
+ Your program's main method needs to be contained inside a class named <code>Program</code>,
+ as the code gets written to a file named <code>Program.java</code>.
+ </p>
<form method="POST">
<input name="csrf" id="csrf-token" type="hidden" value="<?= htmlentities($csrf) ?>">
<textarea maxlength="<?= CODE_MAXLENGTH ?>" id="editor" name="code" rows="20"><?= htmlentities($code ?? $defaultCode) ?></textarea>