Discussion:
[Subclipse-users] can't use JhlClientAdapter?
洋芋
2006-05-09 08:11:42 UTC
Permalink
Hello,
I just need some simple functions such as checkout.But there are so many classes and functions that I'm confussed as a beginner.
There is my code below.But it dosen't work and throws exception.

code:
JhlClientAdapterFactory.setup();
String type = JhlClientAdapterFactory.getPreferredSVNClientType();
System.out.println("Using "+type+" factory");
ISVNClientAdapter svnClient = JhlClientAdapterFactory.createSVNClient(type);
exception:
org.tigris.subversion.svnclientadapter.SVNClientException: Javahl client adapter is not available
I hava downloaded the source of subclipse1.0.1 and added svnjavahl.jar,svnClientAdapter.jar... into eclipse as libraries.
I didn't change the structrue of souce.
I know that JhlClientAdapter is relevant to the *.dll files and structrue of souce is below:
\subclipse1.0.1
\svnClientAdapter
\lib\*.jar
*.dll
\subclipse
\core
\lib\*.jar
I really don't know what's wrong with the problem?
For help,thanks!
Mark Phippard
2006-05-09 12:58:53 UTC
Permalink
Post by 洋芋
I just need some simple functions such as checkout.But there are so
many
Post by 洋芋
classes and functions that I'm confussed as a beginner.
There is my code below.But it dosen't work and throws exception.
JhlClientAdapterFactory.setup();
String type =
JhlClientAdapterFactory.getPreferredSVNClientType();
Post by 洋芋
System.out.println("Using "+type+" factory");
ISVNClientAdapter svnClient = JhlClientAdapterFactory.
createSVNClient(type);
org.tigris.subversion.svnclientadapter.SVNClientException: Javahl client
adapter is not available
I hava downloaded the source of subclipse1.0.1 and added svnjavahl.jar,
svnClientAdapter.jar... into eclipse as libraries.
I didn't change the structrue of souce.
I know that JhlClientAdapter is relevant to the *.dll files and
structrue of
Post by 洋芋
\subclipse1.0.1
\svnClientAdapter
\lib\*.jar
*.dll
\subclipse
\core
\lib\*.jar
I really don't know what's wrong with the problem?
The JavaHL adapter did not find the libraries. The DLL's need to either
be in a folder that is on PATH or you need to set java.libary.path to
include the folder that contains the DLL's.

Could you just use the JavaSVN adapter? It is a lot easier in this area
since it is pure Java. Just call JavaSVNClientAdapterFactory.setup().

Also, I think you should be calling:
SVNClientAdapterFactory.getPreferredSVNClientType()

Mark




_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM Email Security Management Services powered by MessageLabs.
_________________________________

Loading...