-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImageJ ij = new ImageJ() fails #24
Comments
First off, depending on a In this case, rc-9 is also extremely old and probably filled with problems. You can find the latest release version on GitHub and maven. But in general, the safest thing to do is to inherit dependency management from a release version of the bill of materials we provide, typically by using it as a parent pom or
ImageJ 1.x was designed as a single java project. ImageJ2 is highly modular and extensible. If you have further questions about any of this let me know. Also for general development questions/discussions you may be interested in the ImageJ forum.. I think the community would benefit from the perspective and experiences of a developer who uses gradle. |
In addition to @hinerm's comments, a couple other notes:
This means you are using a too-old version of Javassist (one of the project's dependencies) with Java 8. This is probably because you are using an old version of
This often means your build system had problems downloading a JAR file. Easiest solution is to delete the relevant folder from your Gradle/Maven cache, and build again to redownload. However, in this case, the error is about a POM file, which should not be getting treated as a ZIP in the first place. So that is odd. But it may also be a red herring, unrelated to your specific woes here. |
Thanks for your help guys -- unfortunately upgrading to the latest release version ('net.imagej:imagej:2.0.0-rc-43') didn't help, although it did vanquish the zip file error. I took @hinerm's suggestion and added the imagej bom to my gradle build, using version 3.1:
The problem now is that it fails to find some dependencies (you can see the error below). I've tried these three different maven urls (in addition to maven central):
The first one worked when I was not using the bom and just importing imagej-20.0.0-rc-43. Should I should mention that my end goal is to use the dilation, erosion, and 3d distance transform Thanks for any help! FAILURE: Build failed with an exception.
|
Whooops... mis-communication here 😄 the
if you use:
and remove any other ImageJ version specification, does it work better? |
It works, you are my hero. To help anyone else using gradle I've listed the relevant lines in my build.gradle below.
|
Awesome! It's great to hear that it worked for you. Thanks for your persistence 😄 We try to collect all our documentation on the ImageJ wiki - so I started a gradle page in case you run into further pitfalls. |
Hi,
I've installed ImageJ as a library for my project using the gradle line
which seemed to download every ImageJ package known to man. I'm now trying to get the simplest example working, i.e.
but I get a long stack trace of errors which ends with 'error in opening zip file' (see below). Any idea of what's going on?
thanks!
Ryan
Full stack trace
The text was updated successfully, but these errors were encountered: