Re: return result to php



On Thu, 31 Jan 2008 18:37:47 +0800, Rose wrote:
When I call

system('/mnt/hd9/a.out');

the prog sucessfully print a message to web browser. (a.out is an
object file compiled from a C file).

Some context would help here...

Where are you making this call?

But when I change it to java, nothing generates. Should I change
System.out.println to some other functions?

Please define "change it to java".

Did you replace a.out with a Java program? Or did you replace system()
with Runtime.getRuntime().exec("/mnt/hd9/a.out")?

In your other message you posted a stack dump, but here you only said
"nothing generates" and failed to mention JDBC or mysql or even
anything really. The error message seems to indicate classpath
problems, for whatever that's worth.

The help you get is only as good as the information you provide.

/gordon

--
.