>> When I call
>>
[quoted text clipped - 4 lines]
>>
>> But when I change it to java, nothing generates.
but what does your system() call look like?
> Should I change System.out.println to some other functions?
No.
> the error is like this:
>
[quoted text clipped - 3 lines]
>
> java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at
A ClassNotFoundException means that Java cannot find the
com.mysql.jdbc.Driver class. I guess you need to tell Java the location
of a Jar file that contains the MySQL drivers.
See
http://mindprod.com/jgloss/jar.html#TIPS
http://mindprod.com/jgloss/classpath.html#JAR
Lew - 31 Jan 2008 15:46 GMT
Rose wrote:
>>> When I call
>>>
[quoted text clipped - 4 lines]
>>>
>>> But when I change it to java, nothing generates.
It's spelled "Java". When you change what to Java, exactly? How are you
invoking this Java code? Surely you are not trying to use it as a CGI program?
>> Should I change System.out.println to some other functions?
> No.
Yes!
System.out.println() in a JavaEE web app does not write to the client. In a
Java CGI app it would, but that would be a very, very silly architecture.

Signature
Lew
Arne Vajhøj - 01 Feb 2008 02:37 GMT
> Rose wrote:
>>>> When I call
[quoted text clipped - 19 lines]
> In a Java CGI app it would, but that would be a very, very silly
> architecture.
No !!
http://www.php.net/manual/en/function.system.php
Arne
Arne Vajhøj - 01 Feb 2008 02:38 GMT
>> Rose wrote:
>>>>> When I call
[quoted text clipped - 23 lines]
>
> http://www.php.net/manual/en/function.system.php
The point being that is is not Java EE or Java as CGI but
PHP calling a standard Java SE app.
Arne
Lew - 01 Feb 2008 02:44 GMT
Lew wrote:
>>> System.out.println() in a JavaEE web app does not write to the
>>> client. In a Java CGI app it would, but that would be a very, very
>>> silly architecture.
>> No !!
>>
>> http://www.php.net/manual/en/function.system.php
>
> The point being that is is not Java EE or Java as CGI but
> PHP calling a standard Java SE app.
So when the OP said, "... when I change it to Java" they meant the called
program, not the PHP code?
I thought they meant when they use Java as the web app, eliminating the need
for PHP or C.
The other way, you are correct, of course.

Signature
Lew