Q:

Screen Capture using Java, making a Java based Screen Recorder

i want to know is there anyway that using Java one can capture the screen for some particular time, like making a desktop screen cast and then store the result as a video file?  
I looked at many resources but could not find any suitable information regarding this. It would be interesting to know if there are any 3rd party libraries available that can do so?  
Basically i want to know is there any thing "JAVA screen Recorder" that exist?

A:

Java by itself doesn't have this feature. So, to complement such feature, a third-party Java library can be used like VLCJ.
VLCJ is a Java binding to VLC engine (libVLC library and its plugins) used by VLC media player. If you don't know yet, VLC can do screen-cast and screen-capture via its media resource locator (MRL) known as screen://
From this MRL, VLC can transcode into another media container and format, stream as a video, or save it to disk.
There is a post related to this in SO: Capturing with vlcj only gives a corrupt video file

