getting to compile plugins in NetBeans

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

getting to compile plugins in NetBeans

Heerpa
Hi everyone,

I am trying to get NetBeans to compile my ImageJ plugins with increasing desperation. I have followed the tutorial
http://imagejdocu.tudor.lu/doku.php?id=howto:plugins:how_to_set_up_netbeans_to_work_with_imagej_and_matlab_together

At first, I could compile and run IJ, although those little red exclamation marks told me that the package com.sun.tools.javac was not available. (I just couldn't use the compiler from imagej)

now, after looking into it, I have added "C:\Program Files\Java\jdk1.6.0_26\lib\tools.jar" to the java sources classpath in the project properties as well as to Tools->Options->Miscellaneous->Ant->Classpath.
From now on, the whole thing doesn't compile any more, telling me
"E:\ImageJplugin\ImageJ_ijNB\src\ij\plugin\Compiler.java:19: package com.sun.tools.javac does not exist
        private static com.sun.tools.javac.Main javac;"


I did find previous similar questions, but none of the answers helped me.. does anybody have any idea on how I could get around this?

Thanks so much
Reply | Threaded
Open this post in threaded view
|

Re: getting to compile plugins in NetBeans

Thomas Boudier
Hi,

If you want only to compile plugins you do not need to have the Imagej
sources, just add ij.jar into the libraries. Tools.jar is needed if you
compile ImageJ, and then do the same put tools.jar into the Libraries.
Hope this helps.

Thomas


Le 05/07/2011 11:07, Heerpa a écrit :

> Hi everyone,
>
> I am trying to get NetBeans to compile my ImageJ plugins with increasing
> desperation. I have followed the tutorial
> http://imagejdocu.tudor.lu/doku.php?id=howto:plugins:how_to_set_up_netbeans_to_work_with_imagej_and_matlab_together
>
> At first, I could compile and run IJ, although those little red exclamation
> marks told me that the package com.sun.tools.javac was not available. (I
> just couldn't use the compiler from imagej)
>
> now, after looking into it, I have added "C:\Program
> Files\Java\jdk1.6.0_26\lib\tools.jar" to the java sources classpath in the
> project properties as well as to
> Tools->Options->Miscellaneous->Ant->Classpath.
>> From now on, the whole thing doesn't compile any more, telling me
> "E:\ImageJplugin\ImageJ_ijNB\src\ij\plugin\Compiler.java:19: package
> com.sun.tools.javac does not exist
> private static com.sun.tools.javac.Main javac;"
>
>
> I did find previous similar questions, but none of the answers helped me..
> does anybody have any idea on how I could get around this?
>
> Thanks so much
>
> --
> View this message in context: http://imagej.588099.n2.nabble.com/getting-to-compile-plugins-in-NetBeans-tp6548955p6548955.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
>

--
   /**********************************************************/
      Thomas Boudier, MCU Université Pierre et Marie Curie,
      Modélisation Cellulaire et Imagerie Biologique (EE1),
      IFR 83, Bat B 7ème étage, porte 723, Campus Jussieu.
      Tel : 01 44 27 46 92   Fax : 01 44 27 22 91
      --> fin juillet tél : 01 44 27 58 89
/*******************************************************/
Reply | Threaded
Open this post in threaded view
|

Re: getting to compile plugins in NetBeans

Heerpa
OK thanks,
I found out my plugins worked more or less (see http://imagej.588099.n2.nabble.com/issue-Matlab-tp4896691p6549003.html), so I thought it would better to get rid of all errors. but if thats not needed - just the better

cheers, H

Am 05.07.2011 11:21, schrieb Thomas Boudier [via ImageJ]:
Hi,

If you want only to compile plugins you do not need to have the Imagej
sources, just add ij.jar into the libraries. Tools.jar is needed if you
compile ImageJ, and then do the same put tools.jar into the Libraries.
Hope this helps.

Thomas


Le 05/07/2011 11:07, Heerpa a écrit :

> Hi everyone,
>
> I am trying to get NetBeans to compile my ImageJ plugins with increasing
> desperation. I have followed the tutorial
> http://imagejdocu.tudor.lu/doku.php?id=howto:plugins:how_to_set_up_netbeans_to_work_with_imagej_and_matlab_together
>
> At first, I could compile and run IJ, although those little red exclamation
> marks told me that the package com.sun.tools.javac was not available. (I
> just couldn't use the compiler from imagej)
>
> now, after looking into it, I have added "C:\Program
> Files\Java\jdk1.6.0_26\lib\tools.jar" to the java sources classpath in the
> project properties as well as to
> Tools->Options->Miscellaneous->Ant->Classpath.
>> From now on, the whole thing doesn't compile any more, telling me
> "E:\ImageJplugin\ImageJ_ijNB\src\ij\plugin\Compiler.java:19: package
> com.sun.tools.javac does not exist
> private static com.sun.tools.javac.Main javac;"
>
>
> I did find previous similar questions, but none of the answers helped me..
> does anybody have any idea on how I could get around this?
>
> Thanks so much
>
> --
> View this message in context: http://imagej.588099.n2.nabble.com/getting-to-compile-plugins-in-NetBeans-tp6548955p6548955.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
>

--
   /**********************************************************/
      Thomas Boudier, MCU Université Pierre et Marie Curie,
      Modélisation Cellulaire et Imagerie Biologique (EE1),
      IFR 83, Bat B 7ème étage, porte 723, Campus Jussieu.
      Tel : 01 44 27 46 92   Fax : 01 44 27 22 91
      --> fin juillet tél : 01 44 27 58 89
/*******************************************************/



If you reply to this email, your message will be added to the discussion below:
http://imagej.588099.n2.nabble.com/getting-to-compile-plugins-in-NetBeans-tp6548955p6548989.html
To unsubscribe from getting to compile plugins in NetBeans, click here.

Reply | Threaded
Open this post in threaded view
|

Re: getting to compile plugins in NetBeans

Heerpa
In reply to this post by Thomas Boudier
great thanks,
I found out my plugins worked more or less (see 
http://imagej.588099.n2.nabble.com/issue-Matlab-tp4896691p6549003.html), 
so I thought it would better to get rid of all errors. but if thats not 
needed - just the better

cheers, H
Am 05.07.2011 11:21, schrieb Thomas Boudier [via ImageJ]:
Hi,

If you want only to compile plugins you do not need to have the Imagej
sources, just add ij.jar into the libraries. Tools.jar is needed if you
compile ImageJ, and then do the same put tools.jar into the Libraries.
Hope this helps.

Thomas


Le 05/07/2011 11:07, Heerpa a écrit :

> Hi everyone,
>
> I am trying to get NetBeans to compile my ImageJ plugins with increasing
> desperation. I have followed the tutorial
> http://imagejdocu.tudor.lu/doku.php?id=howto:plugins:how_to_set_up_netbeans_to_work_with_imagej_and_matlab_together
>
> At first, I could compile and run IJ, although those little red exclamation
> marks told me that the package com.sun.tools.javac was not available. (I
> just couldn't use the compiler from imagej)
>
> now, after looking into it, I have added "C:\Program
> Files\Java\jdk1.6.0_26\lib\tools.jar" to the java sources classpath in the
> project properties as well as to
> Tools->Options->Miscellaneous->Ant->Classpath.
>> From now on, the whole thing doesn't compile any more, telling me
> "E:\ImageJplugin\ImageJ_ijNB\src\ij\plugin\Compiler.java:19: package
> com.sun.tools.javac does not exist
> private static com.sun.tools.javac.Main javac;"
>
>
> I did find previous similar questions, but none of the answers helped me..
> does anybody have any idea on how I could get around this?
>
> Thanks so much
>
> --
> View this message in context: http://imagej.588099.n2.nabble.com/getting-to-compile-plugins-in-NetBeans-tp6548955p6548955.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
>

--
   /**********************************************************/
      Thomas Boudier, MCU Université Pierre et Marie Curie,
      Modélisation Cellulaire et Imagerie Biologique (EE1),
      IFR 83, Bat B 7ème étage, porte 723, Campus Jussieu.
      Tel : 01 44 27 46 92   Fax : 01 44 27 22 91
      --> fin juillet tél : 01 44 27 58 89
/*******************************************************/



If you reply to this email, your message will be added to the discussion below:
http://imagej.588099.n2.nabble.com/getting-to-compile-plugins-in-NetBeans-tp6548955p6548989.html
To unsubscribe from getting to compile plugins in NetBeans, click here.