I am evaluating your words for Java product. I have downloaded and compiled the demo applications. Could I trouble you to review the stack dump below. The demo application is attempting to connect to a database that I obviously do not have. The connection code is shown just below the stack dump. Any guidance on executing the demo?
Also, do you have a jar file with your DocumentExplorer demo? There is a thread in the forums from 2009 that mention is existence but it was not in the zip I downloaded.
My application involves reading docx files and extracting information and writing it to files. Some of the information will be in tables and some will be in text. It would help my evaluation tremendously if there was a sample you could point me to that demonstrated loading a docx and walking the dom.
Thanks in advance.
C:\Users\pjs1328\Documents\Aspose.Words.Java\demos\Aspose.Words.Demos>java -cp ..\..\lib\Aspose.Words.jdk15.jar;..\..\lib\demos-only-libs\aspose-barcode.jar;..\..\lib\demos-only-libs\servlet.jar;..\..\lib\demos-only-libs\aspose-cells.jar;.\classes com.aspose.words.demos.DemoBatch
Exception in thread "main" java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.aspose.words.demos.Demo.createConnection(Demo.java:136)
at com.aspose.words.demos.Demo.initDemo(Demo.java:53)
at com.aspose.words.demos.DemoBatch.main(DemoBatch.java:23)
C:\Users\pjs1328\Documents\Aspose.Words.Java\demos\Aspose.Words.Demos>
public static void createConnection() throws Exception
{
// Load a DB driver that is used by the demos
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
// Compose connection string.
String connectionString = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};" +
"DBQ=" + mDatabase + ";UID=Admin";
// DSN-less DB connection.
mConnection = DriverManager.getConnection(connectionString);
}