The constructor is not visible?!?!?!

T

tiewknvc9

Hey,

This is the first time Ive experienced an error like this... Im trying
to use a class called VisualMediaHandler
(http://developer.apple.com/document...time/std/movies/media/visualmediahandler.html)

from the quicktime libraries, however when I try to create an object
"VisualMediaHandler vmhMovieHandler = new VisualMediaHandler(0,
movMovie);"
I get this error, "The constructor VisualMediaHandler(int, Object) is
not visible".

I'm using eclipse, and I would think that if I couldn't use this
constructor that it wouldn't "present" itself to me when I hit
alt-space.. So I just dont know where I could start in order to fix
this problem.

let me know if you have any ideas.
 
R

Remon van Vliet

tiewknvc9 said:
Hey,

This is the first time Ive experienced an error like this... Im trying
to use a class called VisualMediaHandler
(http://developer.apple.com/document...time/std/movies/media/visualmediahandler.html)

from the quicktime libraries, however when I try to create an object
"VisualMediaHandler vmhMovieHandler = new VisualMediaHandler(0,
movMovie);"
I get this error, "The constructor VisualMediaHandler(int, Object) is
not visible".

I'm using eclipse, and I would think that if I couldn't use this
constructor that it wouldn't "present" itself to me when I hit
alt-space.. So I just dont know where I could start in order to fix
this problem.

let me know if you have any ideas.

You cant construct those objects then. Safe bet they're returned by another
class in the same API. Read the docs.
 
O

Oliver Wong

tiewknvc9 said:
Hey,

This is the first time Ive experienced an error like this... Im trying
to use a class called VisualMediaHandler
(http://developer.apple.com/document...time/std/movies/media/visualmediahandler.html)

from the quicktime libraries, however when I try to create an object
"VisualMediaHandler vmhMovieHandler = new VisualMediaHandler(0,
movMovie);"
I get this error, "The constructor VisualMediaHandler(int, Object) is
not visible".

I'm using eclipse, and I would think that if I couldn't use this
constructor that it wouldn't "present" itself to me when I hit
alt-space.. So I just dont know where I could start in order to fix
this problem.

I looked at the documentation at the link you posted, and the specified
class has no constructors documented in the API. As someone else mentioned,
to me this usually means there must be a factory somewhere which can
construct instances of this class, but I couldn't actually find such a
factory after looking around. If there's other documentation (perhaps a
tutorial), I suggest you read those. Otherwise, maybe looking for a mailing
list or contact the developers of this library directly, and ask them about
it, and perhaps ask them to put a short blurb in the JavaDocs explaining how
to get an instance of the class.

- Oliver
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top