Login  Register

Trying to compile QT_Movie_Opener

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Trying to compile QT_Movie_Opener

Philip Ershler
92 posts
Hi,
        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;
                          ^
/Volumes/Lion 10.7/Applications/ImageJ/plugins/Batcher/QT_Movie_Opener.java:19: warning: [deprecation] quicktime.std.image.GraphicsMode in quicktime.std.image has been deprecated
import quicktime.std.image.GraphicsMode;
                          ^
/Volumes/Lion 10.7/Applications/ImageJ/plugins/Batcher/QT_Movie_Opener.java:23: warning: [deprecation] quicktime.std.StdQTConstants in quicktime.std has been deprecated
import quicktime.std.StdQTConstants;
                    ^
/Volumes/Lion 10.7/Applications/ImageJ/plugins/Batcher/QT_Movie_Opener.java:33: warning: [deprecation] quicktime.qd.QDConstants in quicktime.qd has been deprecated
public class QT_Movie_Opener implements PlugIn, QDConstants, StdQTConstants, MovieDrawingComplete {
                                                ^
/Volumes/Lion 10.7/Applications/ImageJ/plugins/Batcher/QT_Movie_Opener.java:33: warning: [deprecation] quicktime.std.StdQTConstants in quicktime.std has been deprecated
public class QT_Movie_Opener implements PlugIn, QDConstants, StdQTConstants, MovieDrawingComplete {
                                                             ^
/Volumes/Lion 10.7/Applications/ImageJ/plugins/Batcher/QT_Movie_Opener.java:33: warning: [deprecation] quicktime.std.movies.MovieDrawingComplete in quicktime.std.movies has been deprecated
public class QT_Movie_Opener implements PlugIn, QDConstants, StdQTConstants, MovieDrawingComplete {
                                                                             ^
/Volumes/Lion 10.7/Applications/ImageJ/plugins/Batcher/QT_Movie_Opener.java:35: warning: [deprecation] quicktime.app.view.QTImageProducer in quicktime.app.view has been deprecated
        QTImageProducer qtip;// DEPRECATED!!
        ^

        So the compiler throws all these warnings (and more) and the whole process stops. How does one handle this sort of issue.

Thanks, Phil

Philip R. Ershler Ph.D.
University of Utah
Cardiovascular Research and Training Institute
95 South 2000 East
Salt Lake City, UT 84112-5000
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Trying to compile QT_Movie_Opener

dscho
1631 posts
Hi Philip,

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/?

Ciao,
Johannes
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Trying to compile QT_Movie_Opener

Philip Ershler
92 posts
On Oct 21, 2011, at 8:45 PM, Johannes Schindelin wrote:

> Hi Philip,
>
> 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/?
>
> Ciao,
> Johannes

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$


Philip R. Ershler Ph.D.
University of Utah
Cardiovascular Research and Training Institute
95 South 2000 East
Salt Lake City, UT 84112-5000

phone: (801) 230-8771
alt ph: (801) 587-9528
fax: (801) 581-3128
e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Trying to compile QT_Movie_Opener

Robert Dougherty
227 posts
In reply to this post by dscho
Phillip,

On Oct 21, 2011, at 7:45 PM, Johannes Schindelin wrote:

> Hi Philip,
>
> 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.

One initiative has been to not include QT in the 64-bit version of Java.  Are you running 64-bit ImageJ?  You might try the 32-bit version.

Bob


Robert Dougherty, Ph.D.
President, OptiNav, Inc.
1414 127th Place NE #106
Bellevue, WA 98005
Tel. (425)891-4883
FAX (425)467-1119
www.optinav.com
[hidden email]
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Trying to compile QT_Movie_Opener

Philip Ershler
92 posts
Robert,
        OK, two problems on my part. First, 32 bit Java is definitely required (it is stated right on the source code page!). I also had neglected to download the QTVirtualStack source. So switching to 32 bit and getting the QTVirtualStack source results in a bunch of warnings, but it still runs correctly.
        I appreciate all the help and I am sorry for the noise.

Thanks, Phil

On Oct 22, 2011, at 8:29 AM, Robert Dougherty wrote:

> Phillip,
>
> On Oct 21, 2011, at 7:45 PM, Johannes Schindelin wrote:
>
>> Hi Philip,
>>
>> 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.
>
> One initiative has been to not include QT in the 64-bit version of Java.  Are you running 64-bit ImageJ?  You might try the 32-bit version.
>
> Bob
>
>
> Robert Dougherty, Ph.D.
> President, OptiNav, Inc.
> 1414 127th Place NE #106
> Bellevue, WA 98005
> Tel. (425)891-4883
> FAX (425)467-1119
> www.optinav.com
> [hidden email]

Philip R. Ershler Ph.D.
University of Utah
Cardiovascular Research and Training Institute
95 South 2000 East
Salt Lake City, UT 84112-5000
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Trying to compile QT_Movie_Opener

dscho
1631 posts
In reply to this post by Philip Ershler
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
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Trying to compile QT_Movie_Opener

Philip Ershler
92 posts
Johannes,
     I'm sorry, I thought I had sent the resolution to my problem. It turned out that the compilation of the QT_Movie_Opener depended on another java file that was not in the directory. After adding the other file, I still got a whole raft of warnings, but the compile completes now. Sorry for all the noise.

Phil

On Oct 24, 2011, at 2:41 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
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Trying to compile QT_Movie_Opener

ZEvans12
3 posts
In reply to this post by dscho
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
>
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Trying to compile QT_Movie_Opener

dscho
1631 posts
Dear Zach,

On Mon, 24 Oct 2011, Zach Evans wrote:

> Please take me off this email list. Thank you

Please do not abduct an email thread about a different subject.

Rather, start a new thread. Or in this case, go to exactly the same page
where you subscribed, and unsubscribe (you really do not want 1871
recipients to get the mail that you want to be unsubscribed, or do you?)

Hth,
Johannes