PHP + Java

software development

#1

I was wanting to retrieve some values from a authentication package we use in Java, after hitting the memory ceiling, I tried a minimum case, which capped out as well, until I tried simply retrieving the JVM version:

<?php exec("java -version", $lines, $status); echo(implode("
", $lines)); ?>

Will deliver:

Error occurred during initialization of VM
Could not reserve enough space for code cache

I guess my question is: Has anyone else successfully integrated PHP and java code given these restrictions, and if not… is anyone using Java on dreamhost with another scripting language?


#2

Seems someone found a workaround.