Problem to capture screen shot

hi,
i am new learner in rmi.here i would like to capture a screen on server pc then return it to client pc using rmi.here are the code which i had done(no complete yet because have error when compile it).
1) interface
package AplicationRemoteEngine.client;
public interface ComputeEngin extends Remote
  Object execute(Robot robot)throws RemoteException;
2) interfaceImpl
package AplicationRemoteEngine.client;
public class ComputeEnginImpl extends UnicastRemoteObject implements ComputeEngin
  public ComputeEnginImpl() throws RemoteException
    super();
  public static void main(String[] args)throws Exception
    if (System.getSecurityManager() == null) {
        System.setSecurityManager(new RMISecurityManager());
    String name = "//host/Compute";
    try{
      ComputeEnginImpl computeEnginImpl = new ComputeEnginImpl();
      Naming.rebind(name, computeEnginImpl);
      System.out.println("ComputeEngine bound");
    catch(Exception exception)
        exception.printStackTrace();
  public Object execute(Robot robot) throws IOException
    Toolkit defaultTookit = Toolkit.getDefaultToolkit();
    Rectangle shotArea = new Rectangle(defaultTookit.getScreenSize());
    ByteArrayOutputStream bout = new ByteArrayOutputStream();
    JPEGImageEncoder encoder =
                              JPEGCodec.createJPEGEncode(bout);
    encoder.encode(robot.createScreenCapture(shotArea));
    return bout.toByteArray();  
  public String toString()
    return "ScreenShot";
}so,can anyone tell me or give me a guide how to capture a screen shot form server and return it to client and how client can accept that result?
any hits are welcome.thank you every much.

hi,thankx for your reply.
below are the errors when i compile it:
Error(16,8):
method execute(java.awt.Robot) in class AplicationRemoteEngine.client.ComputeEnginImpl cannot implement method execute(java.awt.Robot) in interface AplicationRemoteEngine.client.ComputeEngin, implemented method does not throw java.io.IOException
Error(48,17):
method execute(java.awt.Robot) in class AplicationRemoteEngine.client.ComputeEnginImpl cannot implement method execute(java.awt.Robot) in interface AplicationRemoteEngine.client.ComputeEngin, implemented method does not throw java.io.IOException
Error(54,27): statement not reachable
then,i have another question that is am i correct to implement the screen capture method?

Similar Messages

  • Capturing screen shots in iMovie

    Hi,
    I want to capture screen shots of my movie in iMovie to have still images from different scenes to then edit in photoshop. Is this possible, or do I need to get specific software for that? Does anybody know how to capture screen shots from an iMovie?
    Thanks,
    quadruple

    Position your cursor where you want the still.
    Right-click and select ADD STILL TO PROJECT
    You will see the still added to the en of your project.
    Now right-click on the still and select SHOW IN FINDER
    In the finder, right click on the still JPEG file and select COPY.
    Now you can paste the still onto your desktop or a folder of your choice and import into iPhoto or Photoshop.
    If you don't want to clutter your video project with stills at the end, you can start a new project for just the stills. Then you place the cursor within your EVENT at the point you want a still. Then Right-click and select ADD Still TO PROJECT. This keeps things tidy.

  • Capture Screen Shot not working in Full Motion

    I am trying to use Full Motion Recording to capture mouse
    movement, while also manually capturing screen shots. The screen
    shots are not being captured though. I've tried the default Print
    Screen key, and also resetting it to the Down key, with no success.
    I can capture the screen shots when Full Motion Recording is not
    active.
    The information in the Help files and Knowledgebase seem to
    indicate that it's possible to manually capture screens while
    recording full motion. Any suggestions about what could be going
    wrong?
    Thanks.

    Hi LisaLouLou and welcome to our community
    I think the help may be misleading you here. If you are
    recording by using the total “Full Motion Capture”,
    Captivate ignores the Print Screen key because you have told it
    that the entire project is to be recorded using Full Motion. Hence,
    there is no slide by slide based recording as there is using the
    other options.
    After you have recorded, you are free to insert blank slides,
    then add images as needed in case that helps.
    Cheers... Rick

  • How to capture Screen Shot

    I was wondering how to capture a screen shot after upgrading to 3.1.3

    Hi all,
    I've just found this thread. I do not know how to capture a screen shot on my iPhone 3G. There are many times I wish I could click on my iPhone the equivilent of "alt-PrtScr" and paste the .jpg into an email or .doc. Am I missing something very simple built into my iPhone 3G 3.1.2? Is there an iPhone app for this function?
    Any help is appreciated.

  • Could not capture screen shot, camera stop working

    Hi,
    I have the iPhone original. Yesterday, it stopped save image to album. I could not take screen shot (home + PowerOn button). It gave me the "click" sound, but the image was not in album. Camera did not save photo to album either. I have enough disk space on the iphone. Anyone knows why?
    Thanks,
    ff

    I had this same problem twice with both of my old iPhones and this solution worked for me both times:
    http://discussions.apple.com/thread.jspa?threadID=1183455&tstart=0
    Re: Camera will not save pictures to phone after snapping photo
    Posted: Nov 3, 2007 11:35 AM in response to: Kevin Barron
    Friends,
    I've found a solution to the problem. This might actually be a solution to hundreds of problems with the iPhone. Apparently there are "system" files that get backed up to the computer -- including SMS discussion history, notes, wireless network history, and other information. When the iPhone is restored from one of these backups, it is possible to have corrupted system files restored along with the problems they create.
    METHOD #1 -- LEAST DESTRUCTIVE
    1. Synchronize iPhone. This also creates a backup of the notes and other items that don't get synchronized anywhere else.
    2. Go to Settings, General, Erase All Content and Settings
    3. Once complete, connect the phone and synchronize with iTunes
    4. Choose to restore from the recent backup to recover your notes, SMS history, and iPhone settings as well as data that is normally synchronized. Your problems may be gone.
    METHOD #2 -- YOU WILL LOSE NOTES, SMS HISTORY, AND OTHER SETTINGS
    If the first method didn't work, try this procedure.
    1. Synchronize iPhone. This also creates a backup of the notes and other items that don't get synchronized anywhere else.
    2. Go to Settings, General, Erase All Content and Settings
    3. Once complete, connect the phone and synchronize with iTunes
    4. Choose NOT to restore from the recent backup. As you continue, you will lose notes, SMS history, and iPhone settings as well as data that is normally synchronized. However, corrupted system files (such as the internal camera roll files) will be replaced with fresh non-corrupted versions and everything should work.
    Method #2 above worked for me. I needed to re-assign personalized ring tones, enter Wireless network passwords again, setup my wallpaper, and do a few other things, but at least the iPhone camera was working again!
    It seems that Method #2 (phone reset and loose all settings) is the best way to resolve issues with corrupted system files.
    Good luck! I hope this helps.

  • Screen Capture (Screen Shot) file default

    The screen capture hidden shortcut using command, shift 4 keys creates an image in the png file format. Is there a way of changing that default to jpg format so I don't have to convert each time in Preview?

    Someone will come along in a minute and offer you the unix code to do so, but if you prefer a program that can do it for you, download Deeper (search at macupdate.com or versiontracker.com). Deeper gives you control over file type and default save location for screenshots, as well as all kinds of other (safe) tweaks you can do to the Mac OS.

  • Capture screen shot

    Hi,
    How could I possibly capture an image from a part of a window in windows?
    THis image would be sent into an OCR after.
    Thank you

    Robot class.
    BufferedImage createScreenCapture(Rectangle screenRect)
    http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Robot.html

  • How do you capture screen shots?

    i have a text message I need to record... how do i do a grab?
    <Branched to a new discussion for more exposure.>
    Message was edited by: Verizon Moderator

    Aside from using any number of SMS backup tools just hold the power and volume down buttons down at exactly the same time.
    Message was edited by: JRAHNBO2

  • Resizing Screen Shots for Print

    Hello,
    I have been tasked with capturing screen shots in order to print them in a manual. I used PrtScr and saved them as a .TIFF. I know there are problems with this kind of printing, and I was hoping to learn the "right way" since I will have to do this quite often.
    I have read in profession book and magazine printing articles that they re-create the screen shot because screen shots just don't print well, so I am not expecting miracles. I just want to get a process in place so these screen shots can look the best they can without re-drawing them or something.
    So when I opened the screen shots in Photoshop they are 96dpi and the pixel dimensions are 1122x871. I would like to reduce the pixel dimensions by 1/3 as they are too large, and increase the resolution, but I am pretty sure that won't do much. Plus the screen shot looks blurry and unsharp mask doesn't fix it much.
    Any help with this process would be appreciated.

    To me it seems a screen shot at 1100+ pixels and printed in a small manual could end up with the user interface elements printing so small that they could be difficult to see in the final print.  As an example, consider how big the menu being shown will be a print at, say, 4.5" width of both of these screens:
    Some other things to consider:
    Along the same lines as the above, you might want to turn up the Windows display scale factor.  Windows 7 provides settings in the Control Panel\Appearance and Personalization\Display dialog.  At 150% the characters and UI elements are made up of more pixels.
    Consider also turning off ClearType font smoothing as these will only make the letters in prints seem fringed with color - not normally a good visual.
    -Noel

  • ATV2 Screen shots

    I'm in the process os capturing screen shots from the ATV2 menus for a project.
    I'm using a AVerMedia HDMI capture card that worked great for the ATV1 screen shots but now that I'm ready to take the ATV2 shots it keeps telling me that HDCP is not supported.
    All I'm trying to do is capture the screens, no contents is even playing and it's complaining about the HDCP.
    I thought HDCP was only for protected content being played over HDMI.
    How can I get the screen shots from the ATV2?
    This card has the option of using Red Blue and Green inputs but there is no way to go from HDMI to any other type of input.
    Anyone have any suggestions or better hardware I need that WILL support HDCP?

    That's annoying for you, maybe Apple have implemented a tighter HDCP requirement for AppleTV 2 including their menus, though in general when people tend to have HDCP warnings it's when they try to play DRM protected stuff not navigate menus.
    Occasionally poor quality/faulty HDMI cables have caused HDCP problems and been solved by a change of cable (I'd say exclusively on HDCP equipped TV sets though) but if the Avermedia unit is simply not reporting HDCP compatibility the AppleTV 2 may be refusing to play ball even with menus.
    To be honest, screen capturing menus etc may be subject to some form of intellectual property laws- it may not be legal to capture the anyway without permission even for a dissertation - I don't know for sure but check the AppleTV T&Cs in Settings.
    If stuck I guess you could approach Apple who might be able to get you some screenshots of such items, unless you need it with your own specific content.
    AC

  • Change date/time format in Screen Shot file name?

    I capture Screen Shots all day long.  But when I go to look for the one I just took, it's not always at the bottom of the list.  That's because Mac names them as e.g.
    Screen Shot 2014-04-29 at 1.19.04 PM.png (and the order gets screwed up).
    Can I change to make save as e.g.
    Screen Shot 2014-04-29 at 13.19.04.png (this way they'll always stay in order).
    Thanks for any help.

    You may have to change system time format globally. Is it worth ?
    http://support.apple.com/kb/PH14227
    Best.

  • How (in windows 8)  could I make an screen shot of a PDF figure or table

    In windows 8, How could I make an screen shot of a figure or table?

    The Windows 8/RT operating system can take screen shots.  Please see the Microsoft Windows Support page below.
    Take a screen shot (print your screen)
    With the steps above, it is possible to capture screen shots of your entire screen or one window.
    Please note that Adobe Reader Touch does not provide the functionality to extract or export any objects (text, images, tables, etc.) from a PDF document (yet).

  • Screen Shots in Robohelp

    I am workking on several large projects in Robohelp. In 2 out
    of the 6 I am having problems with some screen shots snapping to
    their original "full" size. I have tried changing their size before
    importing in both paint and word, tried resizing them one they are
    in Robohelp which distorts the text...............any tips or
    tricks?

    HI cjohns30 and welcome to our community
    Never ever even think about resizing an image directly inside
    the RoboHelp editor! You will inevitably end up with poor results.
    Take a look at the link below for more information.
    Click
    here to read more...
    Cheers... Rick

  • CM 6 & CM 7 IP Phone Screen Shots

    I am trying to capture screen shots from various models of Cisco phones using Call Manager 6 & Call Manager 7, both with Active Directory integration. The http://[IPAddressofphone]/CGI/Screenshot will yield either an error "0" or "4" depending on which version of CM I am trying this on. Any advise on how to capture screenshots in these environments is appreciated. Thank you in advance.

    when you go to that url, do you get prompted for authentication details?
    also, what is the authentication url in your enterprise parameters?
    make sure the user account you authenticate with has a device association with that phone

  • OT: Best font to use for screen shots...

    Any one have suggestions on the best font & OS font
    settings (DPI, etc),
    browser, etc, to use to capture screen shots from a web site
    for use in a
    PDF brochure?
    Client is complaining the text in the screen shots is looking
    very digitized
    and I don't necessarily disagree, but it is a 'screen shot'.
    TIA
    Cosmo.

    David,
    This was an excellent tip. It works well.
    Thanks again,
    Cosmo
    "David Powers" <[email protected]> wrote in message
    news:g845lu$eb1$[email protected]..
    > Cosmo Kramer wrote:
    >> Any one have suggestions on the best font & OS
    font settings (DPI, etc),
    >> browser, etc, to use to capture screen shots from a
    web site for use in a
    >> PDF brochure?
    >
    > For all of my books, I use SnagIt to take the
    screenshots. I grab them in
    > TIFF format at 150 dpi. For Mac screenshots, I use Snapz
    Pro X, which
    > doesn't let you set the dpi. I reset the resolution to
    150 dpi in
    > Photoshop, but *without* resampling.
    >
    > --
    > David Powers, Adobe Community Expert
    > Author, "The Essential Guide to Dreamweaver CS3"
    (friends of ED)
    > Author, "PHP Solutions" (friends of ED)
    >
    http://foundationphp.com/

Maybe you are looking for

  • Can someone advise how to reopen all windows from last session?

    hi there, i already tried to change preferences and i still cant retrive websites from latest session. Can someone advise what else can I do thank you anna

  • Print preview using Crystal Report

    Hello All, In SBO 8.8 or in 2007 with add-on (like B1UP) it is possible to have a cystal report launched by the preview buttons. It works perfectly when the document is stored in the DB, the preview is blanked if you don't have the document validated

  • How can I connect a client java desktop aplication with the server of jsf

    I need to connect a desktop aplication with a jsf, I need to know how I plug the desktop aplication. I open a connection and then what. I need to send faceBean or a HTML documment or a EL document class. Please help me. I don't know how to do this. I

  • Blank screen no external display

    My satellite is less than one year old. On start, screen is blank, external display does not work. Potentially motherboard issues. This appears to be common. Will they pay money back instead of repairing and returning the.horrible product? It may bre

  • Powershell Script to obtain current members of a Group

    Good morning.  Sorry for my English. I would like to change the answer obtained by a script. Today the scrip that I have, give me the following response: Server 1               Group 1                User  1 User 2 User  3 Server 2               Grou