Skip to content

Java Annotations don't work #162

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

Closed
Edodums opened this issue May 13, 2022 · 2 comments
Closed

Java Annotations don't work #162

Edodums opened this issue May 13, 2022 · 2 comments
Assignees

Comments

@Edodums
Copy link

Edodums commented May 13, 2022

I'm trying to build an ImageJ/Fiji plugin.
At first I tried to use ImageJ2 and ImageJ Legacy, that didn't work :
https://forum.image.sc/t/imagej-legacy-can-be-actually-used-to-create-a-plugin-for-imagej-1-x-and-fiji/66831

Now I want to use at least Google Guice (that supports Java 8 and above) for the Dependency Injection.
I had to avoid using that, and that's a pain in the ass, because I've to write a lot of boilerplate to handle what I've could have done in 3 lines of code.

This is the ImageJ 1.x I'm using:
Schermata 2022-05-13 alle 11 05 34

It seems also that exceptions that ImageJ could give are catched, so I don't even know what I'm doing wrong when I add annotations, without them the plugin is launched just fine.

I'll appreciate any response I'll be given.

@ctrueden
Copy link
Member

@Edodums From your description, I am not sure what you are trying to achieve. Could you please share a sample project on GitHub, along with instructions on what goes wrong, and what you would expect to have happen instead?

@Edodums
Copy link
Author

Edodums commented Aug 24, 2022

I'm sorry it was before my graduation and my brain cells didn't work properly 🤣
What I was trying to do at the time was using ImageJ2 and ImageJ-Legacy libraries.
What I didn't know at the time was that for my plugin to work in the ImageJ 1.x app I needed to create an uber jar

@Edodums Edodums closed this as completed Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants