Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Problem connecting to a Weka Database

$
0
0
Hi Mark et alI am running Windows 7 - 32 bit, and Java 7I call Weka as follows.................................********************************try {new WekaApp().doInit();myConsole.getOut().println("Weka initialization successful");}catch (Exception e){myConsole.getOut().println("Weka exception occurred: "+e);}and the called code is as follows:-*******************************private class WekaApp() {public BufferedReader readDataFile (String filename) {BufferedReader inputReader = null;try {inputReader = new BufferedReader (new FileReader(filename));} catch (FileNotFoundException ex) {myConsole.getOut().println("File not found: " + filename);}return inputReader;}void doInit() throws Exception {BufferedReader datafile = readDataFile("C/Databases/us_copiosus");******************************************************Error Results:-File not found:C:/Databases/us_copiosus [the file us_copiosus is there!]Weka Exception occurred:java.sql.SQLException: No suitable driver found for jdbc:derby:C:/Databases/us_copiosus******************************************************I have edited DatabaseUtils.props file as followsjdbcDriver = org.apache.derby.jdbc.EmbeddedDriverjdbcURL = jdbc:derby:C:\Databases\databasenameand have put this file in the recommended place after checking where user.home wasAny suggestions or advice most welcomeBob M

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>