Hello there
I have a problem in executing mysql using java netbeans.
all i want is to execute a batch file. this is my code:
"try
{
Runtime.getRunt ime().exec("C:\ \Program Files\\MySQL\\M ySQL Server 4.1\\bin\\mysql .exe mysql -u root -p -D gino < C:\\projects\\s ample\\gino.txt ");
}
catch(Exception e)
{
System.out.prin tln(e.getMessag e());
System.out.prin tln(e.getCause( ));
}"
How come this code doesn't work when trying with mysql but when i try this code for my reports using reportmill it works fine....can anyone help me
I have a problem in executing mysql using java netbeans.
all i want is to execute a batch file. this is my code:
"try
{
Runtime.getRunt ime().exec("C:\ \Program Files\\MySQL\\M ySQL Server 4.1\\bin\\mysql .exe mysql -u root -p -D gino < C:\\projects\\s ample\\gino.txt ");
}
catch(Exception e)
{
System.out.prin tln(e.getMessag e());
System.out.prin tln(e.getCause( ));
}"
How come this code doesn't work when trying with mysql but when i try this code for my reports using reportmill it works fine....can anyone help me