File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and Relational Databases and the fly likes rowset.jar with jdk1.4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "rowset.jar with jdk1.4" Watch "rowset.jar with jdk1.4" New topic
Author

rowset.jar with jdk1.4

amarshi mohanty
Ranch Hand

Joined: Jul 01, 2008
Posts: 110
Hi All,
My Application is built in jdk 1.4.Now there is a requirement for CachedRowSet for which i am using rowset.jar (as CachedRowSet is supported from jdk1.5 onwards).
there isn't any error displayed on the Eclipse IDE, but when i am building the application (running build.xml) its displays error as

cannot resolve symbol
CachedRowSet crs1 = new CachedRowSetImpl();
^

I even imported the
com.sun.rowset.CachedRowSetImpl and javax.sql.rowset.CachedRowSet;

I also added rowset.jar to the project classpath

Is it because i am using jdk 1.4 its showing the error.
Its there any solutin for using CachedRowSet in JDK 1.4 apart from using rowset.jar.

SCJP (97%), SCWCD (95%))
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
It sounds like the Ant build file does not include the required jar file - check the classpath it uses.
amarshi mohanty
Ranch Hand

Joined: Jul 01, 2008
Posts: 110
In the build.xml i am specifying the path of the parent folder , and i have kept rowset.jar in it.


Thanks
Amarshi
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42956
    
  73
If you want to include jar files, then specifying the path doesn't work - you have to specify the actual jar file. Specifying directories only causes loose class files in them to be included, but not any jar files.
 
jQuery in Action, 3rd edition
 
subject: rowset.jar with jdk1.4
 
It's not a secret anymore!