Subject | My java program using jaybird can run on linux but not on widows |
---|---|
Author | Mohd. Jeffry |
Post date | 2005-06-28T18:03:21Z |
On linux I can run the my program which take a file and put its data
on firebird. I linux I usually ran it like this
java -cp .:lib/firebirdsql-full.jar myjavaprog file1.txt
but on windows when I do
java -cp .;lib\firebirdsql-full.jar myjavaprog file1.txt
and I also tried
java -cp .;firebirdsql-full.jar myjavaprog file1.txt
I get
Database jdbc:firebirdsql://192.168.1.31:3050//var/firebird/db/erp_sd-06062005.f
db
Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/Savepoint
at org.firebirdsql.jca.FBManagedConnection.getConnection(FBManagedConnec
tion.java:298)
at org.firebirdsql.jca.FBStandAloneConnectionManager.allocateConnection(
FBStandAloneConnectionManager.java:62)
at org.firebirdsql.jdbc.FBDataSource.getConnection(FBDataSource.java:109
)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:189)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at uploadFinance.main(uploadFinance.java:52)
What did I do wrong... any hint ?
on firebird. I linux I usually ran it like this
java -cp .:lib/firebirdsql-full.jar myjavaprog file1.txt
but on windows when I do
java -cp .;lib\firebirdsql-full.jar myjavaprog file1.txt
and I also tried
java -cp .;firebirdsql-full.jar myjavaprog file1.txt
I get
Database jdbc:firebirdsql://192.168.1.31:3050//var/firebird/db/erp_sd-06062005.f
db
Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/Savepoint
at org.firebirdsql.jca.FBManagedConnection.getConnection(FBManagedConnec
tion.java:298)
at org.firebirdsql.jca.FBStandAloneConnectionManager.allocateConnection(
FBStandAloneConnectionManager.java:62)
at org.firebirdsql.jdbc.FBDataSource.getConnection(FBDataSource.java:109
)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:189)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at uploadFinance.main(uploadFinance.java:52)
What did I do wrong... any hint ?