NetBeans

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

NetBeans

David Webster
All,

I am trying to use NetBeans with ImageJ as discussed in the ImageJ Wiki. I
assume I am doing the right, although I found the Wiki instructions to be
somewhat terse. I downloaded the prototype NetBeans project for ImageJ and
the current ImageJ source.  When I try to build ImageJ,  I get the error
stream shown below. Can someone tell be what the problem is? I a using
NetBeans 7.1.2,  the current ImageJ source, Java 1.7, and Windows 7.

David

compile:
C:\Program Files (x86)\ijnb\build.xml:9: warning: 'includeantruntime' was
not set, defaulting to build.sysclasspath=last; set to false for repeatable
builds
Compiling 318 source files to C:\Program Files (x86)\ijnb\build
warning: [options] bootstrap class path not set in conjunction with -source
1.3
C:\Program Files (x86)\ijnb\src\ij\measure\CurveFitter.java:115: error:
generics are not supported in -source 1.3
private static Hashtable<String, Integer> namesTable; // converts fitList
String into number
                        ^
  (use -source 5 or higher to enable generics)
C:\Program Files (x86)\ijnb\src\ij\measure\Minimizer.java:112: error:
generics are not supported in -source 1.3
    private Vector<double[]> resultsVector; // holds several results if
multiple tries; the best one is kept.
  (use -source 5 or higher to enable generics)
C:\Program Files (x86)\ijnb\src\ij\measure\Minimizer.java:205: error:
for-each loops are not supported in -source 1.3
            for (double[] r : resultsVector)        // find best result so
far
  (use -source 5 or higher to enable for-each loops)
C:\Program Files (x86)\ijnb\src\ij\plugin\AVI_Reader.java:220: error:
generics are not supported in -source 1.3
    private  Vector<long[]>    frameInfos;  //for virtual stack: long[]
with frame pos&size in file, time(usec)
  (use -source 5 or higher to enable generics)
C:\Program Files (x86)\ijnb\src\ij\plugin\Duplicator.java:368: error:
for-each loops are not supported in -source 1.3
for (Roi roi: allRois) {
            ^
  (use -source 5 or higher to enable for-each loops)
C:\Program Files (x86)\ijnb\src\ij\plugin\filter\GaussianBlur.java:136:
error: annotations are not supported in -source 1.3
    @Deprecated
  (use -source 5 or higher to enable annotations)
C:\Program Files (x86)\ijnb\src\ij\plugin\filter\GaussianBlur.java:292:
error: for-each loops are not supported in -source 1.3
            for ( final Thread thread : lineThreads )
  (use -source 5 or higher to enable for-each loops)
C:\Program Files (x86)\ijnb\src\ij\plugin\filter\RankFilters.java:270:
error: for-each loops are not supported in -source 1.3
            for (final Thread thread : threads)
  (use -source 5 or higher to enable for-each loops)
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:10:
warning: as of release 5, 'enum' is a keyword, and may not be used as an
identifier
public enum Method {
       ^
  (use -source 5 or higher to use 'enum' as a keyword)
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:10: error:
';' expected
public enum Method {
                  ^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:11: error:
not a statement
Default,
^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:11: error:
';' expected
Default,
       ^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:12: error:
not a statement
Huang,
^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:12: error:
';' expected
Huang,
     ^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:13: error:
not a statement
Intermodes,
^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:13: error:
';' expected
Intermodes,
          ^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:14: error:
not a statement
IsoData,
^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:14: error:
';' expected
IsoData,
       ^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:15: error:
not a statement
IJ_IsoData,
^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:15: error:
';' expected
IJ_IsoData,
          ^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:16: error:
not a statement
Li,
^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:16: error:
';' expected
Li,
  ^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:17: error:
not a statement
MaxEntropy,
^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:17: error:
';' expected
MaxEntropy,
          ^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:18: error:
not a statement
Mean,
^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:18: error:
';' expected
Mean,
    ^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:19: error:
not a statement
MinError,
^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:19: error:
';' expected
MinError,
        ^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:20: error:
not a statement
Minimum,
^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:20: error:
';' expected
Minimum,
       ^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:21: error:
not a statement
Moments,
^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:21: error:
';' expected
Moments,
       ^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:22: error:
not a statement
Otsu,
^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:22: error:
';' expected
Otsu,
    ^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:23: error:
not a statement
Percentile,
^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:23: error:
';' expected
Percentile,
          ^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:24: error:
not a statement
RenyiEntropy,
^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:24: error:
';' expected
RenyiEntropy,
            ^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:25: error:
not a statement
Shanbhag,
^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:25: error:
';' expected
Shanbhag,
        ^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:26: error:
not a statement
Triangle,
^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:26: error:
';' expected
Triangle,
        ^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:27: error:
not a statement
Yen
^
C:\Program Files (x86)\ijnb\src\ij\process\AutoThresholder.java:27: error:
';' expected
Yen
   ^
C:\Program Files (x86)\ijnb\src\ij\util\Tools.java:200: error: generics are
not supported in -source 1.3
Arrays.sort(indexes, new Comparator<Integer>() {
                                   ^
  (use -source 5 or higher to enable generics)
44 errors
2 warnings
C:\Program Files (x86)\ijnb\build.xml:9: Compile failed; see the compiler
error output for details.
BUILD FAILED (total time: 4 seconds)

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: NetBeans

Grant Harris
David --
You may be using instructions that I made a long time ago.  
I have posted my updated package for building ImageJ Plugins using NetBeans.
Download ImageJ-NetBeans.zip from https://github.com/tnargsirrah/ImageJ-NetBeans.
Create a directory and unzip ImageJ-NetBeans.zip into it.  Instructions in a .doc file therein.
This has not been tested much, and not at all on Mac/Linux, so let me know of any problems.
-- Grant

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html