Hi all
I have been syncing my servoy solutions with a project locker account which worked perfectly.
I have upgraded my OS to Mac OS X 10.7, and I now get the following error when trying to sync:
Unable to load default SVN client
I think it is to do with my java version (build 1.6.0_26-b03-383-11A511), and I did originally see an error about Subclipse / JavaHL. I can’t find the error anymore, and a google search takes me to the subclipse / javahl requirements page. This however only refers to Mac OS X 10.6, and I don’t know whether the problem is that my java is too new, or that my subclipse is too old etc.
Does anyone have project locker working, and if so, what did you do to fix it if it was broken?
Thanks
Bevil
the exact error I get is this:
Subclipse talks to Subversion via a Java API that requires access to native libraries. Those libraries were either not found or an incompatible version was loaded. The errors are displayed below.
Information on getting a proper version installed and visible to Eclipse is available here:
http://subclipse.tigris.org/wiki/JavaHL
Errors:
Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path
java.library.path = .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
Since this would effect me if I upgraded, I decided to see what information I could find. It appears that JavaHL is unsupported in Lion right now, but it looks like there are a few workarounds. You could switch from JavaHL to SVNKit, and apparently somebody claims you can just change your systems preferences file temporarily to get around the problem. Here’s where I came across this: eclipse - Subclipse in Mac OS Lion shows "Unable to load default SVN client" error - Stack Overflow
Let me know what works!
Hi Bevil,
I upgraded from 10.6 to 10.7 and Subclipse just works for me with JavaHL.
I use version Subversion JavaHL 1.6.17 and Subversion Client Adapter 1.6.12 .
What version(s) do you use ?
Edit: this is with Servoy 5.2.9. I will do a quick test with 6 as well.
Edit2: Yep, works for me in 6 as well.
Hey Robert
That is interesting… Did you have to upgrade anything or it was all automatic?? I did a fresh upgrade of Lion… I have no waiting updates, so I expect everything is up to date. How do you see which version of JavaHL and Subversion Client you have?
Bevil
Open the about and select the Subversion icon (S).
As for the updating, I frequently check for updates so I might have.
Mine are the same versions… I also have svn team provider core 1.6.18
Just checking for differences here… what does the SVN interface property (combobox) say in the prefs (Preferences > Team > SVN).
Mine says JavaHL (JNI) 1.6.15 (r1038135)
It says JavaHL (JNI) Not Available.
Hmm…okay.
Wel I have only 4 subversion plugins installed.
- Subversion Client Adapter (1.6.12)
- Subversion JavaHL (1.6.17)
- Subversion Revision Graph (1.0.9)
- SVN Team Provider Core (1.6.18)
What do you have ?
the same minus the graph.
Is it somehow possible to uninstall / reinstall SVN? If I try to reinstall, it complains that it is already installed and fails to go further…
Yes you can uninstall the plugins, restart and then install them again.
To uninstall just select from the menubar bar Help > Install New Software. And in the dialog you click on the What is already installed.
In this window you can install the selected plugins. You can select more than one at once
Hope this helps.
Thanks for your help Robert, I will give it a go and report back what happens…
Hi Bevil,
One aspect might be important. I let Lion boot into 32-bits mode (due to the lack of 64-bits support of the Cisco VPN kernel extension).
See http://support.apple.com/kb/ht3773 on how to change to 32 bits (one time only or persistent)
See if that makes things work for you.
Hope this helps.
i think that last part is the problem
I have the same problem under windows subclipse install only ships 32bit versions of the JavaHL, i guess it does the same for the mac?
If i use 64 bit i have to use SVNKit
this is annoying i posted this a few times to the subclipse user/dev lists because 64 bit is becoming more and more the default.
I guess also a problem could be if bevil changes to 32 bit that it also needs to reinstall servoy because if you install servoy with a 64 bit jvm the 64 bit version is installed that will not work on 32 bit (and visa versa)
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.commands=-os
macosx
-ws
cocoa
-arch
x86_64
I think I am using a 64-bit install of Servoy though.
did you also install an svn client on your system?
Which is 64 bit?
The client itself ? Hmm…how can I see that ? svn --version doesn’t tell me.
svn, version 1.6.15 (r1038135)
compiled Nov 29 2010, 16:11:54
Perhaps it’s an universal binary (32/64-bit).
no idea, but is that installed by default with OSX?
or did you install that by hand? If you did that by hand then that is the case why it works for you, it does find that binary on your system.