Re: return result to php
- From: RedGrittyBrick <RedGrittyBrick@xxxxxxxxxxxxx>
- Date: Thu, 31 Jan 2008 11:41:04 +0000
Rose wrote:
"Rose" <rose@xxxxxxxx> wrote in message news:fns8dr$***$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxWhen 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
.
- Follow-Ups:
- Re: return result to php
- From: Lew
- Re: return result to php
- References:
- return result to php
- From: Rose
- Re: return result to php
- From: Rose
- return result to php
- Prev by Date: Re: return result to php
- Next by Date: Re: Problems with Taglibs
- Previous by thread: Re: return result to php
- Next by thread: Re: return result to php
- Index(es):