Re: return result to php



Rose wrote:
"Rose" <rose@xxxxxxxx> wrote in message news:fns8dr$***$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
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).

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:

SearchDatabase4.java
74: Class.forName("com.mysql.jdbc.Driver");
344: new SearchDatabase4(args[0], Double.parseDouble(args[1]),



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


.


Quantcast