See this: http://subclipse.tigris.org/wiki/JavaHL
You need the JavaHL libraries for your OS installed. Then it is also
likely you will need to change the java command used to start your
application server to include this:
-Djava.library.path=/opt/CollabNet_Subversion/lib
Where the path might be different depending on where you decide to get
the libraries.
You can probably do this by setting JAVA_OPTS environment before
running the command.
On Fri, Mar 19, 2010 at 3:16 AM, Dilum Vithana <dilumdcv_at_gmail.com> wrote:
> Hi Mark,
>
> My code is working properly.
> But, now I have another problem. Tomcat server is on Linux machine. Can i
> use same code for this time?
> Can i use same DLL file for this time?
>
> Thanx fo any advice.
>
> On 18 March 2010 09:20, dilum vithana <dilumdcv_at_gmail.com> wrote:
>>
>> Hi Mark,
>> Thanx for the advice
>>
>> On 16 March 2010 10:33, dilum vithana <dilumdcv_at_gmail.com> wrote:
>>>
>>> Hi
>>> I'm using SVNClientAdapter to develope a web application. I created
>>> SVNClientAdapter.jar and put all the DLL files into the jar. My goal is to
>>> invoke a method in the SVNClientAdapter.jar thru jsp file. The jar is
>>> located in the "lib" folder of a web application (svnjavahl.jar is also
>>> located in the lib folder). The SVNClientAdapter java project is runing ok
>>> being called thru the Eclipse.
>>> In my project, I used following method.
>>>
>>> String bestClientType =
>>> SVNClientAdapterFactory.getPreferredSVNClientType();
>>>
>>> ISVNClientAdapter svnClient =
>>> SVNClientAdapterFactory.createSVNClient(bestClientType);
>>>
>>> svnClient.setUsername(username);
>>> svnClient.setPassword(password);
>>> NotifyListener listener = new Sample.NotifyListener();
>>> svnClient.addNotifyListener(listener);
>>>
>>> try {
>>> svnClient.checkout(new SVNUrl(svnLocation),new
>>> File(destinationFolder),SVNRevision.HEAD,true);
>>>
>>> } catch (IOException e) {
>>> System.out.println("An exception occured while getting remote
>>> file :"+e.getMessage());
>>> } catch (SVNClientException e) {
>>> System.out.println("An exception occured while getting remote
>>> file :"+e.getMessage());
>>> }
>>>
>>> The problem occures when the jsp call a method in the jar file,
>>> If i called jar file thru jsp, the value of the ISVNClientAdapter
>>> svnClient is null.
>>>
>>> I put all DLL files to C:\WINDOWS\system32 and try to solve it. But it is
>>> doesn't work
>>>
>>> Thanks for any advice.
>>
>
>
--
Thanks
Mark Phippard
http://markphip.blogspot.com/
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2462155
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2010-03-19 14:26:04 CET