From: Jim M. <ji...@ji...> - 2013-06-27 10:22:13
|
You have to run ant from the command line and be in the datavision directory --- the same directory that the build.xml file is in. The "conntest.compile" task is defined in that file, as is the "conntest" task. The "conntest" task calls the "conntest.compile" task, so I was simply splitting them up for you. The ConnectionTest application, which I'm trying to help you run, will give us a clue as to what point in the process is failing: not finding the jar file, bad connection info, etc. Jim On Wed, Jun 26, 2013 at 9:29 PM, Marty McGlensey <mmc...@fr...> wrote: > Jim, > > Had to install ant. Tried ant conntest.compile. Did not compile. "buildfile: > build.xml does not exist. > Tried ant -Dcmdline="-d driver -c conninfo" contest. Same error. In the > datavision...examples directory there is no conntest file there is a > ConnectionTest.java file. Am I missing some files? > > I know the server is running. I can connect to is with MySQL Workbench and > other similar programs. Maybe we need to think about why mm.mysql cannot > find the server. > > Marty > > -----Original Message----- > From: Jim Menard [mailto:ji...@ji...] > Sent: Wednesday, June 26, 2013 18:27 > To: DataVision questions and comments > Subject: Re: [DataVision-users] Datavision errors > > Yes, try the ant command, but let'st try something slightly different. > To compile ConnectionTest, run this > > ant conntest.compile > > Then assuming that completes with no errors you can run the java command > that's in previous emails. > > On Wed, Jun 26, 2013 at 6:15 PM, Marty McGlensey <mmc...@fr...> > wrote: >> Jim, >> >> I added the classpath as you described. I did look at the instructions >> on compiling conntest. I tried make conntest, in the examples >> directory, but that did not work. No rule found to male conntest. >> Should I be executing the ant command instead of make? I'm really >> unfamiliar with compiling and am not sure how to do it. I tried the >> Oracle/MySQL driver but that did not work either. >> >> Should I update to Java runtime 7? >> >> -----Original Message----- >> From: Jim Menard [mailto:ji...@ji...] >> Sent: Wednesday, June 26, 2013 08:55 >> To: DataVision questions and comments >> Subject: Re: [DataVision-users] Datavision errors >> >> Yes, that is the correct name. Based on what you've done, the >> classpath needs to include .../mm.mysql-2.0.14/mm.mysql-2.0.14-bin.jar >> (where ".." is the full path "/home/whatever/it/is/I/forgot/Tryit") >> >> (By the way, I'm not sure how you're replying to each email, but the >> way you're doing it doesn't include previous information. I have to >> look up the previous emails each time because they're in a separate >> thread.) >> >> The "-d" error is because I gave you the wrong command. That's what I >> get for giving you untested commands. Unfortunately, I'm not able to test > these. >> >> java -classpath classes:/home/marty/Tryit/mm.mysql-2.0.14.jar >> examples.ConnectionTest -d >> org.gjt.mm.mysql.Driver -c jdbc:mysql://localhost/DATABASE -s DATABASE >> -u USER -p PASSWORD -v >> >> That command assumes you've compiled the ConnectionTest app by >> following the instructions in the file examples/ConnectionTest.java >> >> Jim >> >> >> >> Jim >> >> On Wed, Jun 26, 2013 at 8:46 AM, Marty <mmc...@fr...> wrote: >>> Jim, >>> >>> My driver came in an archive mm.mysql-2.0.14-you-must-unjar-me.jar. I >>> extracted it with Ubuntu's archive manager. that produced a >>> directory, mm.mysql-2.0.14, containing the file >>> mm.mysql-2.0.14-bin.jar. Is that the correct driver file name? >>> >>> When I tried the script you sent, from the directory containing lib, >>> it errored out. "Unrecognised option -d. Could not create the Java >>> virtual machine" >>> >>> Thanks again for your continued help. >>> >>> Regards, >>> Marty >>> >>> --------------------------------------------------------------------- >>> - >>> -------- This SF.net email is sponsored by Windows: >>> >>> Build for Windows Store. >>> >>> http://p.sf.net/sfu/windows-dev2dev >>> _______________________________________________ >>> DataVision-users mailing list >>> Dat...@li... >>> https://lists.sourceforge.net/lists/listinfo/datavision-users >> >> >> >> -- >> Jim Menard, http://www.jimmenard.com/ >> >> ---------------------------------------------------------------------- >> ------ >> -- >> This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> _______________________________________________ >> DataVision-users mailing list >> Dat...@li... >> https://lists.sourceforge.net/lists/listinfo/datavision-users >> >> >> ---------------------------------------------------------------------- >> -------- This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> _______________________________________________ >> DataVision-users mailing list >> Dat...@li... >> https://lists.sourceforge.net/lists/listinfo/datavision-users > > > > -- > Jim Menard, http://www.jimmenard.com/ > > ---------------------------------------------------------------------------- > -- > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > DataVision-users mailing list > Dat...@li... > https://lists.sourceforge.net/lists/listinfo/datavision-users > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > _______________________________________________ > DataVision-users mailing list > Dat...@li... > https://lists.sourceforge.net/lists/listinfo/datavision-users -- Jim Menard, http://www.jimmenard.com/ |