[ImageJ-devel] Trouble Building the Maven Project for ImageJ

Curtis Rueden ctrueden at wisc.edu
Tue Oct 30 11:48:38 CDT 2012


Hi Calem,

> Sorry to be bothering you about this individually, but I noted that

> almost every file I see in ImageJ has an @author Curtis Rueden at the

> top of it.  After not having much luck, I figured I’d ask you!

The best place to get help with ImageJ2 developer topics is the
imagej-devel mailing list [1].

> It seemed curious that I couldn’t build the project directly after
> pulling it from the Git (imported into Eclipse using eGit with Maven).

Most of the ImageJ2 developers use the same set of tools, so it is strange
that you are having this problem.

Are you using Eclipse 3.7 or later? Earlier versions of Eclipse and M2E had
many bugs.

> Is this caused by a problem in my overall setup?  I’m trying to
> develop a plugin for ImageJ, but getting the program up and running in
> a development environment is being a lot more difficult than I
> expected.

I am sorry that you have had trouble getting set up. We have tested on a
variety of configurations (various OSes, and IDEs including Eclipse,
NetBeans and IDEA, as well as command line with vim + mvn) and all these
options are intended to be largely painless to configure.

Anyway, without more information, it is difficult to say why you are
getting that NPE. Have you tried building and running from the command line
[2]? Have you tried the same procedure from a second machine? Have you
tried cloning the source code from outside Eclipse (e.g. "git clone git://
github.com/imagej/imagej.git") and then using "File > Import > Existing
Maven Projects" on that folder?

Regards,
Curtis

[1] http://developer.imagej.net/mailing-lists
[2] http://developer.imagej.net/command-line


On Fri, Oct 26, 2012 at 5:34 PM, Calem Bendell <calembendell at live.com>wrote:

> Hey Curtis,****
>
> ** **
>
> Sorry to be bothering you about this individually, but I noted that almost
> every file I see in ImageJ has an @author Curtis Rueden at the top of it.
> After not having much luck, I figured I’d ask you!****
>
> ** **
>
> I’m having difficulty running Main for the ImageJ 2.0.  ****
>
> ** **
>
> Exception in thread "main" java.lang.ExceptionInInitializerError****
>
>       at imagej.Main.main(*Main.java:53*)****
>
> Caused by: *java.lang.NullPointerException*****
>
>       at imagej.ImageJ.<clinit>(*ImageJ.java:65*)****
>
>       ... 1 more****
>
> ** **
>
> I get that error at these lines:****
>
>       /** *@deprecated* Use {@link ImageJ#getVersion()} instead. */****
>
>       @Deprecated****
>
>       *public* *static* *final* String VERSION =****
>
>             POM.*getPOM*(ImageJ.*class*, "net.imagej", "ij-core"
> ).getVersion();****
>
> ** **
>
> When I delete those, I get dozens of warnings and then finally a
> NullPointerException.  I haven’t figured out how to point to
> ImageJ#getVersion, and it seemed curious that I couldn’t build the project
> directly after pulling it from the Git (imported into Eclipse using eGit
> with Maven).  So I figured it’d be best to ask rather than start messing
> with large portions of the code directly after pulling.****
>
> ** **
>
> Is this caused by a problem in my overall setup?  I’m trying to develop a
> plugin for ImageJ, but getting the program up and running in a development
> environment is being a lot more difficult than I expected.****
>
> ** **
>
> Thanks for any help!****
>
> ** **
>
> --****
>
> Calem Bendell****
>
> McGill University****
>
> Computer Science Department ****
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20121030/b53ab2ff/attachment.html>


More information about the ImageJ-devel mailing list