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
