aspose file tools*
The moose likes JDBC and the fly likes Connection to pointbase database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Connection to pointbase database " Watch "Connection to pointbase database " New topic
Author

Connection to pointbase database

Yasir Qureshi
Ranch Hand

Joined: Apr 27, 2001
Posts: 44
Hi All,
Please Help me JDBC GURUS, I am really stuck in getting connection from pointbase database, I ran the SampleDatbaseApplication class comes with pointbase4.3. My Autoexec.bat is as follows:
set PATH=c:\jdk1.3\bin
set CLASSPATH=.;c:\pointbase\lib\pbserver43.jar;c:\pointbase\lib\pbclient43.jar;c:\pointbase\lib\pbtools43.jar;c:\pointbase\lib\pbembedded43.jar
----
The Exception it shows is :
java.sql.SQLException: Database SAMPLE does not exist or cannot be found in database home \pointbase\databases specified either specify database.home=<folder> in pointbase.ini or use the <URL>;database.home=<folder> to indicate the database folder. pointbase.ini should be available in the current folder or you can specify the location for pointbase.ini with java -D roperty=value where "property" is pointbase.ini and "value" is <path>pointbase.ini.
at com.pointbase.dbexcp.dbexcpException.getSQLException(DashOB3242)
at com.pointbase.jdbc.jdbcConnection.<init>(DashOB3242)
at com.pointbase.jdbc.jdbcDriver.getConnection(DashOB3242)
at com.pointbase.jdbc.jdbcEmbeddedDriver.getConnection(DashOB3242)
at com.pointbase.jdbc.jdbcEmbeddedDriver.connect(DashOB3242)
at com.pointbase.jdbc.jdbcUniversalDriver.getConnection(DashOB3242)
at com.pointbase.jdbc.jdbcUniversalDriver.connect(DashOB3242)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at SampleDatabaseApplication.JDBCConnect(SampleDatabaseApplication.java:113)
at SampleDatabaseApplication.main(SampleDatabaseApplication.java:1939)
Hopes for a quick reply thanks iin advance.
regards
Qureshi
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Connection to pointbase database