Why I can not get the image file of component?

Hello,
I tried to get an image file from the component. After I run the code below, there is not any new file created. Could you tell me what's wrong with it?
Rectangle d = this.getBounds();
BufferedImage bi = new BufferedImage(d.width, d.height, BufferedImage.TYPE_INT_RGB);
try {     
ByteArrayOutputStream boutstream = new ByteArrayOutputStream();
// save it to file
FileOutputStream fimage = new FileOutputStream( new File( "image.png" ) );
boutstream.writeTo(fimage);
fimage.close();}
catch (Exception ev){     
System.err.println("error making jpeg image: " + ev);
ev.printStackTrace();}

BufferedImage bi = new BufferedImage(d.width,d.height, BufferedImage.TYPE_INT_RGB);Straight after the above line you need to put this line:
d.paint(bi.getGraphics());
This is what was suggested to me in this thread(http://forum.java.sun.com/thread.jsp?forum=57&thread=369379) anyway, and it worked for me!

Similar Messages

  • I have purchased the VGA Connectors for both a iMac and Macbook Pro so that i can connect my promethean board projector to the computer and I can not get the image on the screen.  Does anyone have any suggestions?

    I have purchased the VGA Connectors for both a iMac and Macbook Pro so that i can connect my promethean board projector to the computer and I can not get the image on the screen.  Does anyone have any suggestions?

    Irelandbound wrote:
    thank you, I have the adaptors so glad that would work.  I just heard adaptors burn out often.  So Just thought for my main iMac computer, a plug would be best.  I will get one once I move.
    Any other suggestions or things I should know about apple products in Ireland.  I know there are no Apple stores there.
    An adaptor doesn't burn out. It merely serves as a means to connect the power prongs on your device to the power supply.
    I believe you are thinking of a transformer, which you do not need. A transformer converts one voltage to another.
    You don't need to do that as the power supply of modern electronics can take almost any worldwide voltage.
    Look at the label on the device. It should indicate the input power acceptable of 100-240 VAC, 50-60 Hz.
    Additionally, I found the adapters cheaper in the UK than I found them in the US. They were available in most supermarket chains. I wasn't in Ireland, so I can't say one way or the other.
    If you have something that doesn't have that input power spec, it would require a transformer.
    On other items like electric clocks or things with motors, you can connect them up to a transformer and the voltage will be correct, but the frequency may not. For clocks, that will cause them to not keep time well. For motors, they will burn out.

  • Why I can not get the medium crate of gold

    I need to ask why I buy medium crate of gold in the contract killer : zombies 2 I can not get it can help me check what happen

    What happens when you try to buy it ? If you are getting a message to contact iTunes support then you can do so via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then try selecting Purchases, Billing & Redemption

  • My ipod touch is stuck on the 4.2.1 software, its a 3rd gen as well i was just wondering why i can not get the lastest update can you please help me with this issue

    i have been having an issue with updating my ipod touch for some time now and i can not seem to get it to update to the lastest update. it is stuck on 4.2.1 software and i can not update it to 4.3 or any other ios software update. can you please help me to solve this issue.

    It sounds like you actually have a 2G iPod Touch which can only go as high as iOS 4.2.1.  If it's an 8 GB iPod Touch it's definitely a 2G iPod Touch as there was never such a thing as a 3G 8 GB iPod Touch. See this article to help verify what generation iPod Touch you have.
    Identifying iPod models
    B-rock

  • Why I can not find the 'dbca' file in any where (linux)

    Under $ORACLE_HOME/bin ,I cannot find the 'dbca 'file,why ?should I config any others?
    Before I install oracle on linux ,I only checked the following use the command "rpm -q gcc make binutils openmotif"
    so I only install
    'gcc-4.1.2.42.el5'
    'make-3.81-3.el5'
    'binutils-2.17.50.0.6-6.el5'
    'openmotif-2.3.0-0.5.el5'
    my oracle version is oracle -xe-univ-0.2.0.1-1.0.i386,
    linux is redhat enterprise linux 5 (64bit)
    thanks!
    Edited by: user12469990 on 2010-1-18 下午6:01

    What dbca file?
    The installation docs are at http://docs.oracle.com.
    Follow them if you wish to be successful and that means don't use unsupported versions of Linux.
    Also you can use these links for help:
    http://www.morganslibrary.org/reference/linux_oracle_inst10g.html
    http://www.morganslibrary.org/reference/linux_oracle_inst11g.html
    http://www.morganslibrary.org/reference/linux_oracle_inst11gR2.html

  • Why I can not get the email value?

    I tried to pull out the email address from database, but for some reason i could not get it. Here is the code.
    Javabean:
    public class ProgramBean {
    private String programId;
    private String programTitle;
    private String programDesc;
    private String sponsorId;
    private String sponsorName;
    private String providerId;
    private String provider;
    private String providerEmail;
    private String providerPhone;
    private String programStatus;
    private String receiveDay;
    private String receiveMonth;
    private String receiveYear;
    private String receivedDate;
    private String approvedDay;
    private String approvedMonth;
    private String approvedYear;
    private String approvedDate;
    private String approvedBy;
    private String notifyBy;
    private String expiredDay;
    private String expiredMonth;
    private String expiredYear;
    private String expiredDate;
    private String attachments;
    private String website;
    private String programComments;
    private String section;
    private String notes;
    private String requestedMaxCeu;
    private String approvedMaxCeu;
    private String whoAdded;
    private String dateAdded;
    private String whoChanged;
    private String dateChanged;
    public ProgramBean() {
    public ProgramBean(String programId,String programTitle, String programDesc, String sponsorId, String sponsorName,String providerId,String provider, String providerEmail, String providerPhone,String programStatus,
    String receiveDay,String receiveMonth,String receiveYear, String approvedDay, String approvedMonth, String approvedYear,
    String approvedBy,String notifyBy,String expiredDay,String expiredMonth,String expiredYear,String attachments, String website,String programComments,
    String section,String notes,String whoAdded,String dateAdded,String whoChanged,String dateChanged){
    this.programId = programId;
    this.programTitle = programTitle;
    this.programDesc = programDesc;
    this.sponsorId = sponsorId;
    this.sponsorName = sponsorName;
    this.providerId = providerId;
    this.provider = provider;
    this.providerEmail = providerEmail;
    this.providerPhone = providerPhone;
    this.programStatus = programStatus;
    this.receiveDay = receiveDay;
    this.receiveMonth = receiveMonth;
    this.receiveYear = receiveYear;
    this.approvedDay = approvedDay;
    this.approvedMonth = approvedMonth;
    this.approvedYear = approvedYear;
    this.approvedBy = approvedBy;
    this.notifyBy = notifyBy;
    this.expiredDay = expiredDay;
    this.expiredMonth = expiredMonth;
    this.expiredYear = expiredYear;
    this.attachments = attachments;
    this.website = website;
    this.programComments = programComments;
    this.section = section ;
    this.notes = notes;
    this.whoAdded = whoAdded;
    this.dateAdded = dateAdded;
    this.whoChanged = whoChanged;
    this.dateChanged = dateChanged;
    public void setProgramId(String b_programId){
              this.programId = b_programId;
         public String getProgramId(){
              return     programId;
         public void setProgramTitle(String b_programTitle){
              this.programTitle = b_programTitle;
         public String getProgramTitle(){
              return     programTitle;
    public void setProgramDesc(String b_programDesc){
              this.programDesc = b_programDesc;
         public String getProgramDesc(){
              return     programDesc;
    public void setProgramStatus(String b_programStatus){
              this.programStatus = b_programStatus;
         public String getProgramStatus(){
              return     programStatus;
    public void setApprovedDay(String b_approvedDay){
              this.approvedDay = b_approvedDay;
         public String getApprovedDay(){
              return     approvedDay;
    public void setApprovedMonth(String b_approvedMonth){
              this.approvedMonth = b_approvedMonth;
         public String getApprovedMonth(){
              return     approvedMonth;
    public void setApprovedYear(String b_approvedYear){
              this.approvedYear = b_approvedYear;
         public String getApprovedYear(){
              return     approvedYear;
    public void setApprovedDate(String b_approvedDate){
              this.approvedDate = b_approvedDate;
         public String getApprovedDate(){
              return     approvedDate;
    public void setProvider(String b_provider){
              this.provider = b_provider;
    public String getProvider(){
              return     provider;
    public void setProviderEmail(String b_providerEmail){
              this.providerEmail = b_providerEmail;
    public String getProviderEmail(){
              return     providerEmail;
    public void setSponsorId(String b_sponsorId){
              this.sponsorId = b_sponsorId;
    public String getSponsorId(){
              return     sponsorId;
    public void setSponsorName(String b_sponsorName){
              this.sponsorName = b_sponsorName;
    public String getSponsorName(){
              return     sponsorName;
    public void setProviderPhone(String b_providerPhone){
              this.providerPhone = b_providerPhone;
    public String getProviderPhone(){
              return     providerPhone;
    public void setProviderId(String b_providerId){
              this.providerId = b_providerId;
    public String getProviderId(){
              return     providerId;
    public void setReceiveDay(String b_receiveDay){
              this.receiveDay = b_receiveDay;
         public String getReceiveDay(){
              return     receiveDay;
    public void setReceiveMonth(String b_receiveMonth){
              this.receiveMonth = b_receiveMonth;
         public String getReceiveMonth(){
              return     receiveMonth;
    public void setReceiveYear(String b_receiveYear){
              this.receiveYear = b_receiveYear;
         public String getReceiveYear(){
              return     receiveYear;
    public void setReceivedDate(String b_receivedDate){
              this.receivedDate = b_receivedDate;
         public String getReceivedDate(){
              return     receivedDate;
    public void setApprovedBy(String b_approvedBy){
              this.approvedBy = b_approvedBy;
         public String getApprovedBy(){
              return     approvedBy;
    public void setNotifyBy(String b_notifyBy){
              this.notifyBy = b_notifyBy;
         public String getNotifyBy(){
              return     notifyBy;
    public void setExpiredDay(String b_expiredDay){
              this.expiredDay = b_expiredDay;
         public String getExpiredDay(){
              return     expiredDay;
    public void setExpiredMonth(String b_expiredMonth){
              this.expiredMonth = b_expiredMonth;
         public String getExpiredMonth(){
              return     expiredMonth;
    public void setExpiredYear(String b_expiredYear){
              this.expiredYear = b_expiredYear;
         public String getExpiredYear(){
              return     expiredYear;
    public void setExpiredDate(String b_expiredDate){
              this.expiredDate = b_expiredDate;
         public String getExpiredDate(){
              return     expiredDate;
    public void setAttachments(String b_attachments){
              this.attachments = b_attachments;
         public String getAttachments(){
              return     attachments;
    public void setWebsite(String b_website){
              this.website = b_website;
         public String getWebsite(){
              return     website;
    public void SetProgramComments(String b_programComments){
              this.programComments = b_programComments;
         public String getProgramComments(){
              return     programComments;
    public void SetSection(String b_section){
              this.section = b_section;
         public String getSection(){
              return     section;
    public void SetNotes(String b_notes){
              this.notes = b_notes;
         public String getNotes(){
              return     notes;
    public void SetWhoAdded(String b_whoAdded){
              this.whoAdded = b_whoAdded;
         public String getWhoAdded(){
              return     whoAdded;
    public void SetDateAdded(String b_dateAdded){
              this.dateAdded = b_dateAdded;
         public String getDateAdded(){
              return     dateAdded;
         public void SetWhoChanged(String b_whoChanged){
              this.whoChanged = b_whoChanged;
         public String getWhoChanged(){
              return     whoChanged;
    public void SetDateChanged(String b_dateChanged){
              this.dateChanged = b_dateChanged;
         public String getDateChanged(){
              return     dateChanged;
    public void SetRequestedMaxCeu(String b_requestedMaxCeu){
              this.requestedMaxCeu = b_requestedMaxCeu;
         public String getRequestedMaxCeu(){
              return     requestedMaxCeu;
         public void SetApprovedMaxCeu(String b_approvedMaxCeu){
              this.approvedMaxCeu = b_approvedMaxCeu;
         public String getApprovedMaxCeu(){
              return     approvedMaxCeu;
    Servlet:
    HttpSession session = request.getSession();
    ProgramBean updatedProgramInfo = new ProgramBean();
    try
    Class.forName("oracle.jdbc.OracleDriver");
    conn = DriverManager.getConnection("");
    stmt_get_classes = conn.createStatement();
    sql = "SELECT p.program_id,upper(p.program_title),upper(p.program_desc),p.sponsor_id,p.provider_id, upper(d.last_name||', '||d.First_name),p.program_status, "+
    " to_char(p.date_received,'mm/dd/yyyy'), to_char(p.date_approved,'mm/dd/yyyy'),upper(p.approved_by), Upper(p.notified_by), to_char(p.date_expiration,'mm/dd/yyyy'), nvl2(p.agenda_file,'AGENDA - '||p.agenda_file,'DON''T FORGET THE ATTACHMENTS!'),"+
    " p.website, upper(p.program_comments), p.section, upper(p.administrator_notes), upper(p.cre_user), to_char(p.cre_date,'mm/dd/yyyy hh:mm:ss PM'), upper(p.mod_user), to_char(p.mod_date, 'mm/dd/yyyy hh:mm:ss PM'),"+
    "d.email;
    rs = stmt_get_classes.executeQuery(sql);
    while(rs.next()){
    updatedProgramInfo.setProgramId(rs.getString(1));
    updatedProgramInfo.setProgramTitle(rs.getString(2));
    updatedProgramInfo.setProgramDesc(rs.getString(3));
    updatedProgramInfo.setSponsorId(rs.getString(4));
    updatedProgramInfo.setProviderId(rs.getString(5));
    updatedProgramInfo.setProvider(rs.getString(6));
    updatedProgramInfo.setProgramStatus(rs.getString(7));
    date =rs.getString(8);
    updatedProgramInfo.setApprovedBy(rs.getString(10));
    updatedProgramInfo.setNotifyBy(rs.getString(11));
    date =rs.getString(12);
    updatedProgramInfo.setAttachments(rs.getString(13));
    updatedProgramInfo.setWebsite(rs.getString(14));
    updatedProgramInfo.SetProgramComments(rs.getString(15));
    updatedProgramInfo.SetSection(rs.getString(16));
    updatedProgramInfo.SetNotes(rs.getString(17));
    updatedProgramInfo.SetWhoAdded(rs.getString(18));
    updatedProgramInfo.SetDateAdded(rs.getString(19));
    updatedProgramInfo.SetWhoChanged(rs.getString(20));
    updatedProgramInfo.SetDateChanged(rs.getString(21));
    updatedProgramInfo.setProviderEmail(rs.getString(22));
    System.out.print(rs.getString(21));
    session.setAttribute("ProgramBean",updatedProgramInfo);
    response.sendRedirect("UpdateProgram.jsp");
    JSP:
    <a href="mailto:<c:out value="${sessionScope.ProgramBean.providerEmail}"/>">Email <c:out value="${sessionScope.ProgramBean.provider}"/> </a>
    The problem is I could not ge tthe value: ${sessionScope.ProgramBean.providerEmail}, but I have no problem to get the value: ${sessionScope.ProgramBean.provider}.
    By the way, the original program was written by someone else, i am kind of new of jsp stuff. I just tried to add an email part which shows on the bold text. Did I do something wrong? Thanks.

    Mate,
    Two things...
    1. Please try just printing the email address with a straight: <c:out value="${sessionScope.ProgramBean.providerEmail}"/>, then do a VIEW SOURCE off the result... I SUSPECT that the @ in the email address is being translated by the c:out into a character entity... if that's the case just use escapeXml="false" in your c:out tag... but then you'll need to beware of crosssight scripting attacks, apparently.
    See: http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/c/tld-summary.html
    ... or just use the standard SQL tag library, and avoid the issue completely.
    2. When you post, format your code with the \[code\] \[\/code\] tags... and just remove all the superflious code (don't just bold the pertintant bits... It took me longer to read your code then you took to post it, and I won't bother again.
    Cheers. Keith.

  • Why JSF can not get the session's var?

    I have set the session var in my managed-bean, in my jsf page I can use the <% session.getAttribute( "var" )%> to get the session var, and
    the JSF EL( #{ var } ) do so, but #{session.var} or #{sessionSCope.var} can't return the session var's value. I am using Resin3.1.1 and JSF1.2.
    Any one can help me, thanks.

    public class EnvSetting {
    private String skinFamily = "";
    private String lang = "en";
    public void setskinFamily(String skin)
    skinFamily = skin;
    if (skin.equals("Test1"))
    Locale lc= new Locale("ar", "JO","WINDOWS");
    Locale.setDefault(lc);
    setLang("ar");
    else
    Locale lc= new Locale("en", "UK","WINDOWS");
    Locale.setDefault(lc);
    setLang("en");
    public String getskinFamily()
    if (skinFamily.length() == 0)
    if (Locale.getDefault().getLanguage().equalsIgnoreCase("EN"))
    return "Test" ;
    else
    return "Test1" ;
    else
    return skinFamily;
    public void setLang(String l){
    lang = l;
    public String getLang(){
    return lang;
    Message was edited by:
    JavaIQ

  • Why i can not get the quantity via BAPI_MATERIAL_AVAILABILITY ?

    Hi Experts ,
    I had wrote an abap/4 program to invoke BAPI_MATERIAL_AVAILABILITY this BAPI .
    But i found the result that the aty-quantity in every storage location is the same .. ...
    Is it something wrong with my Code or Something missing in SD customizing setting ?
    in my company we have three storage location : 7000 & 7001 & 7002
    my code :
    Call BAPI Material Availability
          CALL FUNCTION 'BAPI_MATERIAL_AVAILABILITY'
               EXPORTING
                    plant      = 'CN10'
                    material   = it_mater-matnr
                    unit       = 'PC'
                    check_rule = 'BO'
                    STGE_LOC   = '7000'
               IMPORTING
                    return     = ls_return
                    AV_QTY_PLT = w_recqty
               TABLES
                    wmdvsx     = lt_req
                    wmdvex     = lt_com.
    <b>write : lt_com-qty .</b>
    clear lt_com .
    Call BAPI Material Availability
          CALL FUNCTION 'BAPI_MATERIAL_AVAILABILITY'
               EXPORTING
                    plant      = 'CN10'
                    material   = it_mater-matnr
                    unit       = 'PC'
                    check_rule = 'BO'
                    STGE_LOC   = '7001'
               IMPORTING
                    return     = ls_return
                    AV_QTY_PLT = w_recqty
               TABLES
                    wmdvsx     = lt_req
                    wmdvex     = lt_com.
    <b>write : lt_com-qty .</b>
    Thanks a lot !
    Best Regards,
    Carlos

    I can only comment on #2. Because the player doesn't use 'drivers' and relies on Microsofts MTP (Media Transfer Protocol) it doesn't 'officially' work on Macs. However, on previous Creative MTP players independant end users have always come through and written software to work around this issue. I don't own a Mac, and haven't tested it out myself, but I hear it works.

  • TS3798 I get this error message"your operation could not be completed" I need help figuring out why I can not access the web page.

    I get this error message"your operation could not be completed" I need help figuring out why I can not access the web page.

    amarilysfl wrote:
    "Your disk could not be partitioned. An error occurred while partitioning the disk".
    https://www.apple.com/support/bootcamp/
    If you were using Apple's BootCamp and received this message, quit it and open Disk Uility in your Applicaitons/Utilities folder.
    Select the Macintosh HD partition on the left and select Erase and Erase Free Space > Zero option and let it complete (important) this will check the spare space for bad sectors that can cause issues formatting partitions.
    Once it's completed, try creating a partiton again in BootCamp.
    If that doesn't work, then hold command option r keys down while connected to a fast internet connection, Internet Recovery should load (spinning globe) and then in that Disk Utility, select your entire internal drive and click > First Aid > Repair Disk and Permissions.
    reboot and attempt Bootcamp again.
    If you still get a error, it might be that you have OS X data on the bottom area where BootCamp partition needs to go. This would occur if you had the drive or computer for a long time or wrote a large amount of files to the drive and nearly filling it up and then reduced some, but it left traces in the area BootCamp needs to go.
    To fix this
    BootCamp: "This disc can not be partitioned/impossible to move files."
    How to safely defrag a Mac's hard drive

  • HT1454 why i can not get video out from my ipod touch after i did the upgrade

    why i can not get video out from my ipod touch after i did the upgrade

    why i can not get video out from my ipod touch after i did the upgrade

  • When I have video clips on my timeline, they do not play in the monitor screen. I hear the sound track but can not see the image. To test if my new files are somehow the problem, I went back and used video files that I used successfully a year ago, and th

    When I have video clips on my timeline, they do not play in the monitor screen. I hear the sound track but can not see the image. To test if my new files are somehow the problem, I went back and used video files that I used successfully a year ago, and they no longer play in the monitor window. I hear the sound track, but do not see any video. Have I changed some setting that controls video playback in the monitor window?

    Randy Ruttger
    Thanks for the follow up.
    Missing in this equation were the version of Premiere Elements that you were using and the computer operating system on which it was running. But...
    The deed is done. But.....Until now and after you went ahead and moved to version 12, we now learn what version of Premiere Elements you were using. We still do not know the computer operating system involved.
    You just said Premiere Elements 10. Premiere Elements 10 is hit by a serious known display issue if the computer uses a NVIDIA GeForce video card/graphics card. In this issue, the only remedy is to roll back the driver version to about May 2013. The description of the problem and how to do the roll back are described in one of the Announcements at the top of this forum. What video card/graphics card does your computer use?
    On another front, Adobe will be releasing a new version of Premiere Elements any day now. No one but Adobe knows the feature set for the new version. That type of information is announced at the moment of release of the new version.
    So the remedy to the problem that you presented in this thread could have been...
    1. Rolling back the NVIDIA GeForce driver version to about May 2013 if possible (Windows 8 or 8.1 64 bit, may not be possible)
    2. Move to another version of Premiere Elements (which you did)
    I offer the above for consideration so that you can review your decisions. We are pleased to learn that Premiere Elements 12/12.1 works for you.
    Please do not hesitate to ask questions and ask for clarifications, but remember that the answers are in the details.
    Best wishes,
    ATR

  • Exporting photos for UHDTV or Native 4K TV, what are the best settings ? (File: Quality File: Color Space, Image Sizing and resolution)   Or in other words; How can I get the smallest files but keep good quality for display on new UHDTV

    Exporting photos for UHDTV or Native 4K TV, what are the best settings ? (File: Quality File: Color Space, Image Sizing and resolution)   Or in other words; How can I get the smallest files but keep good quality for display on new UHDTV

    You're welcome, and thank you for the reply.
    2) Yesterday I made the subclips with the In-Out Points and Command-U, the benefit is that I've seen the clip before naming it. Now I'm using markers, it's benefit is that I can write comment and (the later) clip name at once, the drawback is that I have to view to the next shot's beginning before knowing what the shot contains.
    But now I found out that I can reconnect my clips independently to the format I converted the master clip to. I reconnected the media to the original AVI file and it worked, too! The more I work with, the more I'm sold on it... - although it doesn't seem to be able to read and use the date information within the DV AVI.
    1) Ok, I tried something similar within FCE. Just worked, but the file size still remains. Which codec settings should I use? Is the export to DV in MOV with a quality of 75% acceptable for both file size and quality? Or would be encoding as H.264 with best quality an option for archiving, knowing that I have to convert it back to DV if I (maybe) wan't to use it for editing later? Or anything else?
    Thank's in advance again,
    André

  • HT2905 can someone please tell me why I do not get the delete from disk option when trying to delete duplicate items

    can someone please tell me why I do not get the delete from disk option when trying to delete duplicate items

    The content must be in the iTunes directory structure for that option to appear.

  • Please I can not get a .jar file to run on XP SP3 start/run/cmd/

    I can not get a .jar file to run on XP SP3 start/run/cmd/
    Please help if can figure this out. I'm convinced it is a Windows XP SP3 problem from searching on google and seeing other ppl on XP SP3 with same problem (but no working solution for myself). I'll try to be complete-listing all I've done.
    I had installed: Java SE Runtime Environment v6u14 for Windows Multi-language
    I had checked here it was working properly: http://www.java.com/en/download/manual.jsp
    I'm trying to run this jar file (soht-client-0.6.2.jar):
    http://prdownloads.sourceforge.net/telnetoverhttp/soht-java-client-0.6.2.zip?download
    http://www.ericdaugherty.com/dev/soht/javaclient.html < this is the information for the program.
    (yes the file can be executed and should open the program's window
    I wanted to post screenshot of it but friend that it's working for isn't here)
    _(Please find log of all cmds I did in this post here: http://pastebin.com/f792983df )_
    _I have extracted +'all' the files to: C:\062\+_ (I have tried using other directories, same problem)
    ++I then start/open/run/cmd+
    then I: cd C:\062\+
    then I try various commands - all+ of these do absolutely nothing- meaning no errors, no reply, no window opens, nothing except enters that directoy again:
    java -jar soht-client-0.6.2.jar
    java -jar -client soht-client-0.6.2.jar
    java -client -jar soht-client-0.6.2.jar
    java -jar soht-client-0.6.2.jar soht.properties
    soht-client-0.6.2.jar
    So I try this cmd: java soht-client-0.6.2.jar
    Reply:
    C:\062>java soht-client-0.6.2.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: soht-client-0/6/2/jar
    Caused by: java.lang.ClassNotFoundException: soht-client-0.6.2.jar
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: soht-client-0.6.2.jar. Program will exit.
    I try this cmd:
    java -jar soht-client-0.6.2.jar -client
    Reply:
    C:\062>java -jar soht-client-0.6.2.jar -client
    Unable to load configuration file: -client - java.io.FileNotFoundException: -cli
    ent (The system cannot find the file specified)
    SOHT Java Client
    The SOHT Java Client requires a properties file. Either start
    the application in the same directory as the soht.properties
    file, or specify the file name on the command line:
    java -jar soht-cleint-<version>.jar c:\soht.properties
    So then I do these cmds which produce the exact same error/reply just above; Unable to load..:
    j_ava -jar soht-client-0.6.2.jar -client soht.properties_
    java -jar soht-client-0.6.2.jar -client C:\062\soht.properties
    So then I copy soht.properties to C root and do:
    java -jar soht-client-0.6.2.jar -client C:\soht.properties <same error as above
    Then from other information I have read I right click on the .jar file, select open with Always open with:
    _"C:\Program Files\Java\jre6\bin\javaw.exe"_
    Try again.. same problem.
    Then I do cmd:
    _"C:\Program Files\Java\jre6\bin\javaw.exe" -jar "C:\062\soht-client-0.6.2.jar"_
    does nothing, retry the other commands same thing (either nothing or those same replies)
    Then I read (http://forums.sun.com/thread.jspa?threadID=5384879) someone had the same problem as I and they solved it by uninstalling all Java/reboot/ then install JDK 6 Update 14 with NetBeans 6.5.1 start NetBeans and then it worked for them.
    So I unistalled all Java, rebooted and gave the cmd another try (before re-installing), now a new error, of course:
    C:\062>java -jar soht-client-0.6.2.jar
    'java' is not recognized as an internal or external command, operable program or batch file.
    Then I install  Java SE and NetBeans Cobundle (JDK 6u14 and NB 6.5.1) Final Release/ reboot/ open Netbeans/
    go to test java page; all is good, run cmds again -and still nothing..
    C:\062>java -version
    java version "1.6.0_14"
    Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
    Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
    I reassociate program with: C:\Program Files\Java\jre1.6.007\bin\javaw.exe_
    same thing.. nothing
    Thank you very much for your time :D_
    PS. My computer has been newly reformatted so needing another reformat I'm sure is not the solution.

    Thank you very much for your replies Taggert_77 & swmtgoet_x :D
    Taggert77_: I have never used NetBeans. I only installed it in the bundle as I had read on another post that somehow installing the bundle magically helped another user with the same problem (he didn't know why it worked after that either).
    Before XP SP3 I was able to execute .jar file through cmd prompt. Now I am not.
    This file is executable, grab it and you will see. Here is a screen shot (program in front is FlashFXP, behind is the cmd prompt and what should happen):http://www.freeimagehosting.net/uploads/53273b4ddf.jpg
    swmtgoetx_: I only did the other cmd's to try to make it spit out something, anything lol :D
    The proper cmd is simply: java -jar soht-client-0.6.2.jar
    I did give your cmd a try, and it produced nothing :( (just like the other correct cmds)
    java -client -jar soht-client-0.6.2.jar soht.properties
    Thank you again...the mystery remains
    PS. If you do a search for this you'll find an amazing amount of XP SP3 users with the same problem and no solution posted that I could find except one chap that did the unistall install order that I did above).

  • Swapping Macs, can't change the image file used for TM to a Time Capsule

    Hello ~
    I have ten Macs connected to one TimeCapsule (TC) and nine of them work flawlessly performing a TimeMachine (TM) backup. On the one that doesn't work properly, it is a PBP with Leopard 10.5.8, and latest updates. The other Macs are mixed 10.5.x and 10.6.x.
    I had a user on the PBP that I had been backing up in the past. I erased the HD and reinstalled the OS, and then created a new account. I wanted to start backing up the new account and have the name of the backup be the new name I put under Sharing Preference (I assume that's where TM gets the name of the backup).
    Well, apparently not, the name of the backup is still the old user name from Sharing, and on the old account before the computer was erased.
    I have repaired permissions, I have thrown out the TM prefs in Mac HD\Library\Preferences\, I have restarted the computer. So far I can not get the name to change on the sparse image that it copies to, even though TM says the backup completed without error.
    So, as it appears the backup is using the same old image file that this Mac had been using, the backup are separate when you go into TimeMachine, they do not seem to access each other's data, and inspecting the contents of the image, the date of the backup file is there for the new user in the old image file.
    I really would just like the PBP to stop using the old image file and create it's own image.
    Any ideas welcome!
    Thanks all
    Chaz

    I'm slightly confused. What is a PBP or did you mean a MacBook Pro (MBP)? And, what do you mean by a backup "image?" TM does not make images. Are you actually referring to the backup folder for this machine?
    If I understand correctly what you need to do is delete the old backup for this machine so TM can start from scratch with a new backup. To do that open the TM application and select your backup, then from the Finder's tool icon in the toolbar select "Delete." which should delete the entire backup.
    Also, see User Tips for Time Machine for help with TM problems. Also you can select Mac Help from the Finder's Help menu and search for "time machine" to locate articles on how to use TM. See also Mac 101- Time Machine.

Maybe you are looking for