Download this file
19 lines (13 with data), 367 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 | <?php require_once("java/Java.inc");
$ex = new JavaException("java.lang.Exception", "bleh");
echo $ex->getMessage();
if ($ex->getMessage()=="") die ("test failed");
echo "\n---\n";
try {
java("java.lang.System")->getProperties("bleh");
} catch (JavaException $e) {
echo $e->getMessage();
if ($e->getMessage()=="") die ("test failed");
}
echo "\n---\n";
?>
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.