Re: Trying to compile QT_Movie_Opener
Posted by
ZEvans12 on
URL: http://imagej.273.s1.nabble.com/Trying-to-compile-QT-Movie-Opener-tp3682769p3682773.html
Please take me off this email list. Thank you
On Oct 24, 2011 5:46 PM, "Johannes Schindelin" <
[hidden email]>
wrote:
> Hi Philip,
>
> On Fri, 21 Oct 2011, Philip Ershler wrote:
>
> > On Oct 21, 2011, at 8:45 PM, Johannes Schindelin wrote:
> >
> > > On Fri, 21 Oct 2011, Philip Ershler wrote:
> > >
> > >> I have picked up the source code for the QT_Movie_Opener plugin. I
> > >> am trying to make some minor changes so that I can call this plugin
> > >> from another plugin to implement a batch mode plugin. However, when
> > >> I try to compile and run the original QT_Movie_Opener.java file
> from
> > >> ImageJ, I get a bunch of DEPRECATED errors like these
> > >>
> > >> /Volumes/Lion
> 10.7/Applications/ImageJ/plugins/Batcher/QT_Movie_Opener.java:18: warning:
> [deprecation] quicktime.std.image.GraphicsImporter in quicktime.std.image
> has been deprecated
> > >> import quicktime.std.image.GraphicsImporter;
> > >> ^
> > >
> > > Those are not errors, but only warnings. It means that these classes
> > > have been deprecated, my guess is because Quicktime4Java in general
> > > has been a little bit neglected lately by Apple, and furthermore, they
> > > want to discourage using Java.
> > >
> > >> [...]
> > >>
> > >> So the compiler throws all these warnings (and more) and the whole
> > >> process stops.
> > >
> > > Now, the stopping of the process is an altogether different issue. Are
> > > you sure that there are no output .class files in plugins/Batcher/?
> >
> > Thanks for the thought but here's what's in the directory.
> >
> > Administrators-MacBook-Pro:~ ershler$ cd /Volumes/Lion\
> 10.7/Applications/ImageJ/plugins/Batcher
> > Administrators-MacBook-Pro:Batcher ershler$ ls -la
> > total 16
> > drwxr-xr-x 3 ershler 2000 102 Oct 21 19:51 .
> > drwxr-xr-x@ 25 ershler 2000 850 Oct 21 19:44 ..
> > -rw-r--r--@ 1 ershler 2000 7639 Oct 21 19:51 QT_Movie_Opener.java
> > Administrators-MacBook-Pro:Batcher ershler$
>
> I suspect the .class files to lie somewhere else, then. Maybe directly in
> plugins/?
>
> In any case, you should be able to compile them on the command line when
> cd'ing to the Batcher/ directory and calling
>
> javac -classpath /path/to/ij.jar QT_Movie_Opener.java
>
> Ciao,
> Johannes
>