Menu

[r271]: / trunk / php-java-bridge / tests.php4 / showResources.php  Maximize  Restore  History

Download this file

20 lines (15 with data), 388 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/php
<?php
if(!extension_loaded('java')) {
dl('java.' . PHP_SHLIB_SUFFIX);
}
$here=trim(`pwd`);
java_set_library_path("$here/showResources.jar;$here/array6.jar;$here/cache.jar");
$sr=new java("ShowResources");
$sr->main(array());
echo "\n\n";
$sr->main(array("cache.jar"));
$Cache = new JavaClass("Cache");
$instance= $Cache->getInstance();
echo $instance->hashCode();
?>