1176 | | |
1177 | | Install Subclipse using "help/Eclipse MarketPlace" and search for subclipse. Disable the JavaHL native DLLs and install. (NOTE: use eclipse 2018 or later, there is a bug in Eclipse Photon related to the subclipse plugin) |
1178 | | |
1179 | | You may get some errors on JavaHL library. To get rid of those, go to preferences/Team/SVN/ |
1180 | | * disable General SVN settings / JavaHL |
1181 | | * SVN interface/Client: select SVNKit instead of JavaHL. |
1182 | | |
1183 | | Right click in Package Explorer in Eclipse, select "Import/SVN/Checkout Projects from SVN". Select the root of the project, finish (selecting sub-projects will result in a stupid loop in the checkout procedure in Eclipse and won't lead anywhere...) |
| 1176 | Getting SVN working in Eclipse is tricky because SVNKit does not work with the newer java that comes with Eclipse because java increased security requirements and SVNKit is now considered unsafe. Therefore you need to work with JavaHL which is complex to get working. |
| 1177 | The installation instructions are on [https://github.com/subclipse/subclipse/wiki github]. Do NOT use the Eclipse marketplace because it is installing old code without the required JavaHL 14 adapter. |
| 1178 | Best follow the [https://github.com/subclipse/subclipse/wiki github instructions]. In short: |
| 1179 | * install SVN 14. |
| 1180 | * Install JavaHL with {{{sudo apt-get install libsvn-java}}} |
| 1181 | * Figure out where javahl was installed using {{{sudo find / -name libsvnjavahl-1.so}}} |
| 1182 | * Edit the eclipse.ini file to point to the javahl library. Typically this means adding one line with {{{-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni/}}} to the eclipse.ini file (which is in the root of your downloaded eclipse folder). |
| 1183 | * start Eclipse |
| 1184 | * Install subclipse using the Help/Install new Software menu. Add repository https://subclipse.github.io/updates/. Select the JavaHL for svn14 adapter and Subclipse. Do not select SVNKit. Do not select the "Subclipse integration for Mylyn", as it is incompatible now. |
| 1185 | * In the SVN preferences in Eclipse, check that JavaHL is enabled. |
| 1186 | |
| 1187 | NOTE: Uninstalling SVNKit and subclipse (or variants like subversive) seems not to work properly in Eclipse, above procedure seems to work properly best with a fresh Eclipse installation) |
| 1188 | |
| 1189 | After this, SVN should work. You can now right click in Package Explorer in Eclipse, select "Import/SVN/Checkout Projects from SVN". Select the root of the project, finish (selecting sub-projects will result in a stupid loop in the checkout procedure in Eclipse and won't lead anywhere...) |