Changes between Version 491 and Version 492 of WikiStart


Ignore:
Timestamp:
11/08/22 10:52:47 (19 months ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v491 v492  
    11741174
    11751175== Import all sources in Eclipse
    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...)
     1176Getting 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.
     1177The 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.
     1178Best 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
     1187NOTE: 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
     1189After 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...)
    11841190
    11851191Richt click on the checked-out project that you want eclipse to recognise as Maven project (the project are maven but Eclipse does not recognise this after check-out). Select import/maven/existing maven projects. Finish.