I used Google to find tutorials for writing plugins and found two but both
failed, the first, I think, because it was too old. I'm using Eclipse Kepler and Oracle Java 1.7 SE on my home Max OS-X 10.8.5. Could some one point me toward a tutorial for a first attempt? Thanks -- When I was 12 I thought I would live forever. So far, so good. -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Did you have a look at the Developer Resources on the ImageJ website (http://imagej.nih.gov/ij/developer/index.html) or Fiji website (http://fiji.sc/Documentation)?
Kees ________________________________________ From: ImageJ Interest Group [[hidden email]] On Behalf Of Robert Lockwood [[hidden email]] Sent: 06 October 2013 01:56 To: [hidden email] Subject: Plugins I used Google to find tutorials for writing plugins and found two but both failed, the first, I think, because it was too old. I'm using Eclipse Kepler and Oracle Java 1.7 SE on my home Max OS-X 10.8.5. Could some one point me toward a tutorial for a first attempt? Thanks -- When I was 12 I thought I would live forever. So far, so good. -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Thanks, I did not know about the documentation on the Fiji website. I'll
give that a try. Nate On Sun, Oct 6, 2013 at 5:38 AM, Straatman, Kees R. (Dr.) < [hidden email]> wrote: > Did you have a look at the Developer Resources on the ImageJ website ( > http://imagej.nih.gov/ij/developer/index.html) or Fiji website ( > http://fiji.sc/Documentation)? > > Kees > > ________________________________________ > From: ImageJ Interest Group [[hidden email]] On Behalf Of Robert > Lockwood [[hidden email]] > Sent: 06 October 2013 01:56 > To: [hidden email] > Subject: Plugins > > I used Google to find tutorials for writing plugins and found two but both > failed, the first, I think, because it was too old. > > I'm using Eclipse Kepler and Oracle Java 1.7 SE on my home Max OS-X 10.8.5. > > Could some one point me toward a tutorial for a first attempt? > > Thanks > > -- > When I was 12 I thought I would live forever. > So far, so good. > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- When I was 12 I thought I would live forever. So far, so good. -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by Robert Lockwood
Hi Robert,
On Sat, 5 Oct 2013, Robert Lockwood wrote: > I used Google to find tutorials for writing plugins and found two but > both failed, the first, I think, because it was too old. > > I'm using Eclipse Kepler and Oracle Java 1.7 SE on my home Max OS-X > 10.8.5. > > Could some one point me toward a tutorial for a first attempt? I recently uploaded two screencasts that should be able to help you: the first one to watch is about setting up Eclipse to debug ImageJ 1.x (yes, I know, you want to write plugins, not debug ImageJ, but those two tasks are actually amazingly similar): http://www.youtube.com/watch?v=XyfE_fVphCs&list=UUOXCsWKZNGez9QOQMWw-Qww The second one is about developing plugins in Netbeans (again, I know, you want to do it with Eclipse, but the idea is the same: start by cloning the https://github.com/imagej/minimal-ij1-plugin source code repository and modifying it): http://www.youtube.com/watch?v=Ac-6gJ2eRb0&list=UUOXCsWKZNGez9QOQMWw-Qww As for documentation how to actually write ImageJ 1.x plugins, I recommend (disclaimer: I wrote most of it) this Fiji wiki page: http://fiji.sc/Introduction_into_Developing_Plugins For debugging in Eclipse, I recommend using the fiji-lib approach demonstrated here: http://fiji.sc/Debugging#Debugging_plugins_in_an_IDE_.28Netbeans.2C_IntelliJ.2C_Eclipse.2C_etc.29 Ciao, Johannes -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Robert,
On Mon, 7 Oct 2013, Robert Lockwood wrote: > [hidden email]> wrote: > > On Sun, Oct 6, 2013 at 11:09 PM, Johannes Schindelin < > > > On Sat, 5 Oct 2013, Robert Lockwood wrote: > > > > > I used Google to find tutorials for writing plugins and found two > > > but both failed, the first, I think, because it was too old. > > > > > > I'm using Eclipse Kepler and Oracle Java 1.7 SE on my home Max OS-X > > > 10.8.5. > > > > > > Could some one point me toward a tutorial for a first attempt? > > > > I recently uploaded two screencasts that should be able to help you: > > the first one to watch is about setting up Eclipse to debug ImageJ 1.x > > (yes, I know, you want to write plugins, not debug ImageJ, but those > > two tasks are actually amazingly similar): > > > > http://www.youtube.com/watch?v=XyfE_fVphCs&list=UUOXCsWKZNGez9QOQMWw-Qww > > > > The second one is about developing plugins in Netbeans (again, I know, you > > want to do it with Eclipse, but the idea is the same: start by cloning the > > https://github.com/imagej/minimal-ij1-plugin source code repository and > > modifying it): > > > > http://www.youtube.com/watch?v=Ac-6gJ2eRb0&list=UUOXCsWKZNGez9QOQMWw-Qww > > > > As for documentation how to actually write ImageJ 1.x plugins, I recommend > > (disclaimer: I wrote most of it) this Fiji wiki page: > > > > http://fiji.sc/Introduction_into_Developing_Plugins > > > > For debugging in Eclipse, I recommend using the fiji-lib approach > > demonstrated here: > > > > http://fiji.sc/Debugging#Debugging_plugins_in_an_IDE_.28Netbeans.2C_IntelliJ.2C_Eclipse.2C_etc.29 > > I'm working on this as time permits. I followed your first tutorial and > received a few warnings (poker faced understatement): 1,739 of them, but no > errors. The version is, I think, 48d. As you say, those are warnings, not errors. Some of them are simply caused by the code base of ImageJ 1.x trying very hard to stay compatible with Java 1.5 (Java 1.6/1.7 suggests to do some things differently, doing so through compiler warnings). > The first few are similar to this, others complain of raw types, etc. > > Description Resource Path Location Type > Access restriction: The constructor ScriptEngineManager() is not accessible > due to restriction on required library > /Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/jre/lib/rt.jar > JavaScriptEvaluator.java /ij/src/main/java line 39 Java Problem This is one of the Java 1.5 vs Java 1.6/1.7 problems. In any case, since you want to make a plugin, not modify the core of ImageJ 1.x, you need not bother with those warnings. The reason why I pointed you to the Eclipse tutorial was that it demonstrates nicely how to import a Maven project ("Maven" is a way to organize the dependencies, such as ImageJ, conveniently). Now you will need to apply the knowledge you gained about importing a Maven project to the minimal-ij1-plugin one. > I'm going to try to plough on with the second tutorial. In this tutorial, you should not look so much for how to interact with the development environment (because it demonstrates things with Netbeans instead of Eclipse), but rather where to change the source code to start writing your very own plugin. Good luck! Johannes -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |