Skip to main content



      Home
Home » Newcomers » Newcomers » Need Help Configuring Eclipse to Work with a Macro (ImageJ)
Need Help Configuring Eclipse to Work with a Macro (ImageJ) [message #226997] Fri, 10 August 2007 19:46
Eclipse UserFriend
Originally posted by: mjankowski.gmail.com

Hi all,

I am new to Java and the Eclipse platform. Please let me know if there is
a handy How-To or FAQ that might assist me in solving this problem. I am
running Ubuntu Linux 7.04 (Feisty) on an IBM T41 laptop. Thank you for
looking this over! On to my question...

UnwarpJ is a plugin for the open source ImageJ application. What I need to
do is be able to debug (I want to look at specific variables) in the
'transformImageMacro(String args[])' macro, see below, that is part of the
UnwarpJ plugin.

To run this macro from the command line I enter the command:
java -Xmx512m -Dplugins.dir=$IJDIR/ImageJ -cp
$IJDIR/ij.jar:$IJDIR/plugins/UnwarpJ UnwarpJ_ -transform target source
coefficients output

My question: how do I translate these command line arguments to be able to
debug the macro that is part of the plugin in Eclipse?

I have set up Eclipse to work with ImageJ as described here:
http://imagejdocu.tudor.lu/Members/ppirrotte/howtos/the-imag ej-eclipse-howto/

One small difference from the instructions above, I added the UnwarpJ
plugin as a project and, to my surprise, could not find the ij folder in
the build sources. I ended up adding the ImageJ source as a project
reference and Eclipse reported no errors.

Next, I go to Run-> Arguments and add in the command line arguments I gave
above. When I click 'run', instead of the macro starting what happens is
that ImageJ itself starts up. Clearly my setup is improper.

How do I correctly translate the above command line argument to the
appropriate places in Eclipse? After I do this, will the argument be able
to make use of environmental variables or do I need to type in the full
path? If I wanted to convert the macro to a function and have that be the
beginning point for the debugging...how would I do that? Is there some
easier way to do all of this (a different configuration of the plugin
project etc) that would make this more straightforward?

Thank you very much for looking this over! I appreciate any offers of help.

Matt




private static void transformImageMacro(String args[]) {
// Read input parameters
String fn_target=args[1];
String fn_source=args[2];
String fn_tnf =args[3];
String fn_out =args[4];

....

}
Previous Topic:OpenVMS
Next Topic:Eclipse servers view + SEVERE: An incompatible version 1.1.2 of... error message
Goto Forum:
  


Current Time: Sun Jun 08 12:43:45 EDT 2025

Powered by FUDForum. Page generated in 0.08078 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top