> Thanks for the response but this is just a simple class we
> want to run
you cannot run a class; not in PHP, not in Java, not even in Lisp. You can run a thread or a process, and you can invoke methods of a class, or you can invoke procedures. But you cannot invoke anything unless you have something to call into.
> from a php script that the users will use not us so really
> they will not
> be able to use the java call unless I scrap the java bridge
> all together
> and use php console abilities instead.
I am sorry, but I don't understand this sentence.
> I know how to set the heap space but I wanted to use the
> java bridge but
The PHP/Java Bridge isn't different. The nice feature of the "continuation-passing style" used by the bridge is that it uses standard (and therefore familiar) technology. Its only problem is that people don't understand it at all; they invent strange workarounds for problems which simply do not exist.
> it's starting to look like it doesn't have the capabilities we need it
> for in this instance.
Well, w/o a proper question or specification, the answer will remain "42" . :)
 From Douglas Adam's http://en.wikipedia.org/wiki/The_Hitchhiker's_Guide_to_the_Galaxy