SVNRepositoryLocation location = null;
SVNRepositoryLocation location;
    public static void main(String[] args) {        /*         * default values:         */        String url = "http://72.9.228.230:8080/svn/jsvn/branches/jorunal";        /*         * Authentication is generally not required for reading operations         */        String name = "anonymous";        String password = "anonymous";        /*         * initializes the library (it must be done before ever using the         * library itself)         */        setupLibrary();        if (args != null) {            /*             * obtains a repository location URL             */            url = (args.length >= 1) ? args[0] : url;            /*             * obtains an account name (will be used to authenticate the user to             * the server)             */            name = (args.length >= 2) ? args[1] : name;            /*             * obtains a password             */            password = (args.length >= 3) ? args[2] : password;        }        SVNRepositoryLocation location = null;        SVNRepository repository = null;        try {            /*             * Parses the URL string and creates an SVNRepositoryLocation which             * represents the repository location (you can think of this             * location as of a current repository session directory; it can be             * any versioned directory inside the repository).             */            location = SVNRepositoryLocation.parseURL(url);            /*             * Creates an instance of SVNRepository to work with the repository.             * All user's requests to the repository are relative to the             * repository location used to create this SVNRepository.             *               */            repository = SVNRepositoryFactory.create(location);        } catch (SVNException svne) {            /*             * Perhaps a malformed URL is the cause of this exception             */            System.err                    .println("error while creating an SVNRepository for location '"                            + url + "': " + svne.getMessage());            System.exit(1);        }        /*         * creates a user's credentials provider         */        ISVNCredentialsProvider scp = new SVNSimpleCredentialsProvider(name,                password);        /*         * Sets the provider of the user's credentials that will be used to         * authenticate the user to the server (if needed) during operations         * handled by SVNRepository         */        repository.setCredentialsProvider(scp);        try {            /*             * Checks up if the specified path/to/repository part of the URL             * really corresponds to a directory. If doesn't the program exits.             * SVNNodeKind is that one who says what is located at a path in a             * revision. -1 means the latest revision.             */            SVNNodeKind nodeKind = repository.checkPath("", -1);            if (nodeKind == SVNNodeKind.NONE) {                System.err.println("There is no entry at '" + url + "'.");                System.exit(1);            } else if (nodeKind == SVNNodeKind.FILE) {                System.err.println("The entry at '" + url + "' is a file while a directory was expected.");                System.exit(1);            }            /*             * getRepositoryRoot returns the actual root directory where the             * repository was created             */            System.out.println("Repository Root: "                    + repository.getRepositoryRoot());            /*             * getRepositoryUUID returns Universal Unique IDentifier (UUID) - an             * identifier of the repository             */            System.out.println("Repository UUID: "                    + repository.getRepositoryUUID());            System.out.println("");            /*             * Displays the repository tree at the current path - "" (what means             * the path/to/repository directory)             */            listEntries(repository, "");        } catch (SVNException svne) {            System.err.println("error while listing entries: "                    + svne.getMessage());            System.exit(1);        }        /*         * Gets the latest revision number of the repository         */        long latestRevision = -1;        try {            latestRevision = repository.getLatestRevision();        } catch (SVNException svne) {            System.err                    .println("error while fetching the latest repository revision: "                            + svne.getMessage());            System.exit(1);        }        System.out.println("");        System.out.println("---------------------------------------------");        System.out.println("Repository latest revision: " + latestRevision);        System.exit(0);    }