Thanks a lot. I previously only had svnkit-1.7.4-v1.jar in the build path. Now 
I added sqljet-1.1.1.jar, antlr-runtime-3.4.jar and sequence-library-1.0.2.jar 
and it works. 

Aditya

-----Original Message-----
From: svnkit-users-boun...@svnkit.com [mailto:svnkit-users-boun...@svnkit.com] 
On Behalf Of Semen Vadishev
Sent: Wednesday, June 06, 2012 8:31 AM
To: SVNKit Library Users List
Subject: Re: NoClassDefFoundError when trying to get revision information for a 
file in a working copy (local directory)

Hello,

Looks like you have no SQLJet library on classpath. Starting from SVNKit 
1.7.x this library is necessary to work with new Subversion working copy 
format.

This library amongst others is included into the standard distribution 
of SVNKit.

Semen Vadishev,
TMate Software,
http://subgit.com/ - git+svn on the server side!


On 6/6/12 15:20, Shah Aditya A wrote:
> I want to get revision information for a file in the working copy and
> compare its revision with the latest revision available for that file in
> the repository.
> For this, I tried to use the doInfo(...) method in SVNWCClient class. But
> I get an exception I am not able to understand. I have the
> svnkit-1.7.4-v1.jar in the build path and I can also run the example at
> _http://wiki.svnkit.com/Printing_Out_A_Subversion_Repository_Tree_.
> Maybe there is another configuration setting I need to do?
> If someone can help, that would be great. I searched on the forum and
> the internet for this and did not find a similar case.
> Thank you,
> Aditya
> ****
> Here is the source code (Anyone who wants to try this will have to
> modify the file location to be a valid checked out file):
> *import*java.io.File;
> *import*org.tmatesoft.svn.core.SVNException;
> *import*org.tmatesoft.svn.core.wc.SVNClientManager;
> *import*org.tmatesoft.svn.core.wc.SVNRevision;
> *import*org.tmatesoft.svn.core.wc.SVNWCClient;
> *public**class*CompareRevision2 {
> *public**static**void*main(String[] args) {
> SVNClientManager cm = SVNClientManager./newInstance/();
> String fileName = "C:/test/abc.txt";
> File wcFile = *new*File(fileName);
> System./out/.println(wcFile.getAbsolutePath());
> SVNWCClient cl = cm.getWCClient();
> *try*{
> //cl.doGetFileContents(wcFile, SVNRevision.UNDEFINED,
> SVNRevision.WORKING, false, System.out);
> cl.doInfo(wcFile, SVNRevision./WORKING/);
> } *catch*(SVNException e) {
> // *TODO*Auto-generated catch block
> e.printStackTrace();
> }
> }
> }
> Exception:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> _org/tmatesoft/sqljet/core/SqlJetException_
> at
> org.tmatesoft.svn.core.wc2.SvnOperationFactory.detectWcGeneration(_SvnOperationFactory.java:1627_)
> at
> org.tmatesoft.svn.core.wc2.SvnOperationFactory.getImplementation(_SvnOperationFactory.java:1294_)
> at
> org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(_SvnOperationFactory.java:1216_)
> at org.tmatesoft.svn.core.wc2.SvnOperation.run(_SvnOperation.java:291_)
> at org.tmatesoft.svn.core.wc.SVNWCClient.doInfo(_SVNWCClient.java:2423_)
> at CompareRevision2.main(_CompareRevision2.java:21_)
> Caused by: _java.lang.ClassNotFoundException_:
> _org.tmatesoft.sqljet.core.SqlJetException_
> at java.net.URLClassLoader$1.run(_URLClassLoader.java:200_)
> at java.security.AccessController.doPrivileged(_Native Method_)
> at java.net.URLClassLoader.findClass(_URLClassLoader.java:188_)
> at java.lang.ClassLoader.loadClass(_ClassLoader.java:303_)
> at sun.misc.Launcher$AppClassLoader.loadClass(_Launcher.java:301_)
> at java.lang.ClassLoader.loadClass(_ClassLoader.java:248_)
> at java.lang.ClassLoader.loadClassInternal(_ClassLoader.java:316_)
> ... 6 more


Reply via email to