Skip to content

Latest commit

 

History

History
69 lines (39 loc) · 2.06 KB

File metadata and controls

69 lines (39 loc) · 2.06 KB

+++ date= 2021-04-06 title = "Import a Gradle project with Eclipse"

[extra] author="Stephan Seitz" +++

  • On Windows, macOS download the latest Java version 15 from Oracle. On Ubuntu Linux, you can install sudo apt install openjdk-14-jdk or sudo apt install openjdk-11-jdk. At least Java 8 is required. If you have a working installtion from AuD, you can skip this step.

  • Install Eclipse from https://www.eclipse.org/downloads/

  • Open Eclipse

    ss

  • Import...

    ss

  • Existing Gradle Project...

    ss

  • Chose path of the downloaded project and click Next (it must be the folder that contains build.gradle)

    ss

  • Grab a coffee while it's downloading ImageJ

    ss

  • Try to run Exercise00

    ss

  • You are seeing red squiggles, you found a bug in a Eclipse plugin. Upgrade it in the Eclipse Marketplace! Update: I think this bug is resolved on new Eclipse versions. So you don't have to upgrade "Buildship Gradle Integration" on new versions!

    ss

  • Search for gradle build! Then, click on the Installed button of "Buildship Gradle Integration".

    ss

  • ... and click on Update! This should solve the bug after a restart.

    ss

  • You should now see ImageJ when you start Exercise01.

    ss

  • If you're still facing problems: please also check whether a valid Java Runtime Enviroment was found by right-clicking on the project folder (if it still has red crosses). Select Properties -> Java Build Path. Sometimes Eclipse does not find your Java installation. You can select it there.

    ss

Still facing problems? Are you sure you imported the folder that contains build.gradle. If you imported a subfolder or a folder that contain the folder that contains build.gradle, Eclipse will be very confused but does not yield an error.

Back to exercise 00