Managing spaces when working with files

Hi, how can I work with files on windows on paths thats have blank spaces like "Documents and Settings", I used getResource().getFile() and writting the path but it always fails!
The FileOutputStream always thorws the exception FIleNotFoundException.
I tried the path with blank spaces and tried with %20 but always is the same.

Are you saying that OutputStream os = new FileOutputStream("C:/Documents
and
Settings/AAD/workspace/MobileServer/bin/Configuracion/
conexiones.omt");throws an exception? If so, what exception?Exactly it throws an Exception.
java.io.FileNotFoundException: C:\Documents and Settings\AAD\workspace\MobileServer\bin\server\Configuracion\conexiones.omt (El sistema no puede hallar la ruta especificada)
     at java.io.FileOutputStream.open(Native Method)
     at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
     at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
     at server.tcp.GestionTCP.guardar(GestionTCP.java:118)
     at server.tcp.GestionTCP.mouseReleased(GestionTCP.java:89)
     at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
     at java.awt.Component.processMouseEvent(Component.java:6038)
     at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
     at java.awt.Component.processEvent(Component.java:5803)
     at java.awt.Container.processEvent(Container.java:2058)
     at java.awt.Component.dispatchEventImpl(Component.java:4410)
     at java.awt.Container.dispatchEventImpl(Container.java:2116)
     at java.awt.Component.dispatchEvent(Component.java:4240)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
     at java.awt.Container.dispatchEventImpl(Container.java:2102)
     at java.awt.Window.dispatchEventImpl(Window.java:2429)
     at java.awt.Component.dispatchEvent(Component.java:4240)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Similar Messages

  • Unwanted space when working with tables

    I have created a layout using tables (in CS4), and when I top align the tables containing images and text, it leaves a large, blank, unwanted space at the bottom. I am unable to resize the tables accordingly to eliminate the space, how can I fix this? Here's an image

    Unfortunately, I'm not familiar with coding for CSS. If I was able to layout a site with CSS the way I had envisioned, I totally would have, I just don't know how. Any suggestions? Anyways, here's my code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>The Crisis // Crew</title>
    <style type="text/css">
    <!--
    body, td, th {
    color: #000;
    body {
    background-color: #161616;
    td img {
    display: block;
    td img {
    display: block;
    td img {
    display: block;
    td img {
    display: block;
    td img {
    display: block;
    td img {
    display: block;
    td img {
    display: block;
    td img {
    display: block;
    td img {
    display: block;
    td img {
    display: block;
    }td img {display: block;}
    -->
    </style>
    <style type="text/css">
    <!--
    .borderTable {
    margin: auto auto;
    border-collapse: collapse;
    border: 1px solid black;
    .Arial {
    font-family: Arial, Helvetica, sans-serif;
    .Arial {
    font-size: 12px;
    color: #333;
    a:link {
    color: #333;
    a:visited {
    color: #333;
    .center {
    color: #FFF;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    text-align: center;
    .arial {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    color: #FFF;
    .bodytext {
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
    -->
    </style>
    <script type="text/javascript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_nbGroup(event, grpName) { //v6.0
      var i,img,nbArr,args=MM_nbGroup.arguments;
      if (event == "init" && args.length > 2) {
        if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
          img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
          if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
          nbArr[nbArr.length] = img;
          for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
            if (!img.MM_up) img.MM_up = img.src;
            img.src = img.MM_dn = args[i+1];
            nbArr[nbArr.length] = img;
      } else if (event == "over") {
        document.MM_nbOver = nbArr = new Array();
        for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
          nbArr[nbArr.length] = img;
      } else if (event == "out" ) {
        for (i=0; i < document.MM_nbOver.length; i++) {
          img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
      } else if (event == "down") {
        nbArr = document[grpName];
        if (nbArr)
          for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
        document[grpName] = nbArr = new Array();
        for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
          if (!img.MM_up) img.MM_up = img.src;
          img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
          nbArr[nbArr.length] = img;
    //-->
    </script>
    </head>
    <body onload="MM_preloadImages('Photoshop/Animation/Top_r2_c4_f3.jpg','Photoshop/Animation/Top_ r2_c4_f2.jpg','Photoshop/Animation/Top_r2_c4_f4.jpg','Photoshop/Animation/Top_r2_c8_f3.jpg ','Photoshop/Animation/Top_r2_c8_f2.jpg','Photoshop/Animation/Top_r2_c8_f4.jpg','Photoshop /Animation/Top_r2_c10_f3.jpg','Photoshop/Animation/Top_r2_c10_f2.jpg','Photoshop/Animation /Top_r2_c10_f4.jpg','Photoshop/Animation/Top_r3_c2_f3.jpg','Photoshop/Animation/Top_r3_c2_ f2.jpg','Photoshop/Animation/Top_r3_c2_f4.jpg','Photoshop/Animation/Top_r3_c6_f3.jpg','Pho toshop/Animation/Top_r3_c6_f2.jpg','Photoshop/Animation/Top_r3_c6_f4.jpg')">
    <table width="870" border="0" align="center" cellpadding="0" cellspacing="3">
      <tr>
        <td><table border="0" cellpadding="0" cellspacing="0" width="870">
          <!-- fwtable fwsrc="PageTop2.png" fwpage="Page 1" fwbase="Top.jpg" fwstyle="Dreamweaver" fwdocid = "427913899" fwnested="0" -->
          <tr>
            <td><img src="Photoshop/Animation/spacer.gif" width="277" height="1" border="0" alt="" /></td>
            <td><img src="Photoshop/Animation/spacer.gif" width="66" height="1" border="0" alt="" /></td>
            <td><img src="Photoshop/Animation/spacer.gif" width="33" height="1" border="0" alt="" /></td>
            <td><img src="Photoshop/Animation/spacer.gif" width="95" height="1" border="0" alt="" /></td>
            <td><img src="Photoshop/Animation/spacer.gif" width="28" height="1" border="0" alt="" /></td>
            <td><img src="Photoshop/Animation/spacer.gif" width="77" height="1" border="0" alt="" /></td>
            <td><img src="Photoshop/Animation/spacer.gif" width="31" height="1" border="0" alt="" /></td>
            <td><img src="Photoshop/Animation/spacer.gif" width="107" height="1" border="0" alt="" /></td>
            <td><img src="Photoshop/Animation/spacer.gif" width="18" height="1" border="0" alt="" /></td>
            <td><img src="Photoshop/Animation/spacer.gif" width="117" height="1" border="0" alt="" /></td>
            <td><img src="Photoshop/Animation/spacer.gif" width="21" height="1" border="0" alt="" /></td>
            <td><img src="Photoshop/Animation/spacer.gif" width="1" height="1" border="0" alt="" /></td>
          </tr>
          <tr>
            <td colspan="11"><img name="Top_r1_c1" src="Photoshop/Animation/Top_r1_c1.jpg" width="870" height="195" border="0" id="Top_r1_c1" alt="" /></td>
            <td><img src="Photoshop/Animation/spacer.gif" width="1" height="195" border="0" alt="" /></td>
          </tr>
          <tr>
            <td colspan="3"><img name="Top_r2_c1" src="Photoshop/Animation/Top_r2_c1.jpg" width="376" height="1" border="0" id="Top_r2_c1" alt="" /></td>
            <td rowspan="3"><a href="artists.html" target="_top" onclick="MM_nbGroup('down','navbar1','Top_r2_c4','Photoshop/Animation/Top_r2_c4_f3.jpg',1 );" onmouseover="MM_nbGroup('over','Top_r2_c4','Photoshop/Animation/Top_r2_c4_f2.jpg','Photos hop/Animation/Top_r2_c4_f4.jpg',1);" onmouseout="MM_nbGroup('out');"><img name="Top_r2_c4" src="Photoshop/Animation/Top_r2_c4.jpg" width="95" height="52" border="0" id="Top_r2_c4" alt="" /></a></td>
            <td colspan="3"><img name="Top_r2_c5" src="Photoshop/Animation/Top_r2_c5.jpg" width="136" height="1" border="0" id="Top_r2_c5" alt="" /></td>
            <td rowspan="2"><a href="gallery.html" target="_top" onclick="MM_nbGroup('down','navbar1','Top_r2_c8','Photoshop/Animation/Top_r2_c8_f3.jpg',1 );" onmouseover="MM_nbGroup('over','Top_r2_c8','Photoshop/Animation/Top_r2_c8_f2.jpg','Photos hop/Animation/Top_r2_c8_f4.jpg',1);" onmouseout="MM_nbGroup('out');"><img name="Top_r2_c8" src="Photoshop/Animation/Top_r2_c8.jpg" width="107" height="51" border="0" id="Top_r2_c8" alt="" /></a></td>
            <td rowspan="3"><img name="Top_r2_c9" src="Photoshop/Animation/Top_r2_c9.jpg" width="18" height="52" border="0" id="Top_r2_c9" alt="" /></td>
            <td rowspan="3"><a href="contact.html" target="_top" onclick="MM_nbGroup('down','navbar1','Top_r2_c10','Photoshop/Animation/Top_r2_c10_f3.jpg' ,1);" onmouseover="MM_nbGroup('over','Top_r2_c10','Photoshop/Animation/Top_r2_c10_f2.jpg','Phot oshop/Animation/Top_r2_c10_f4.jpg',1);" onmouseout="MM_nbGroup('out');"><img name="Top_r2_c10" src="Photoshop/Animation/Top_r2_c10.jpg" width="117" height="52" border="0" id="Top_r2_c10" alt="" /></a></td>
            <td rowspan="3"><img name="Top_r2_c11" src="Photoshop/Animation/Top_r2_c11.jpg" width="21" height="52" border="0" id="Top_r2_c11" alt="" /></td>
            <td><img src="Photoshop/Animation/spacer.gif" width="1" height="1" border="0" alt="" /></td>
          </tr>
          <tr>
            <td rowspan="2"><img name="Top_r3_c1" src="Photoshop/Animation/Top_r3_c1.jpg" width="277" height="51" border="0" id="Top_r3_c1" alt="" /></td>
            <td rowspan="2"><a href="index.html" target="_top" onclick="MM_nbGroup('down','navbar1','Top_r3_c2','Photoshop/Animation/Top_r3_c2_f3.jpg',1 );" onmouseover="MM_nbGroup('over','Top_r3_c2','Photoshop/Animation/Top_r3_c2_f2.jpg','Photos hop/Animation/Top_r3_c2_f4.jpg',1);" onmouseout="MM_nbGroup('out');"><img name="Top_r3_c2" src="Photoshop/Animation/Top_r3_c2.jpg" width="66" height="51" border="0" id="Top_r3_c2" alt="" /></a></td>
            <td rowspan="2"><img name="Top_r3_c3" src="Photoshop/Animation/Top_r3_c3.jpg" width="33" height="51" border="0" id="Top_r3_c3" alt="" /></td>
            <td rowspan="2"><img name="Top_r3_c5" src="Photoshop/Animation/Top_r3_c5.jpg" width="28" height="51" border="0" id="Top_r3_c5" alt="" /></td>
            <td rowspan="2"><a href="crew.html" target="_top" onclick="MM_nbGroup('down','navbar1','Top_r3_c6','Photoshop/Animation/Top_r3_c6_f3.jpg',1 );" onmouseover="MM_nbGroup('over','Top_r3_c6','Photoshop/Animation/Top_r3_c6_f2.jpg','Photos hop/Animation/Top_r3_c6_f4.jpg',1);" onmouseout="MM_nbGroup('out');"><img name="Top_r3_c6" src="Photoshop/Animation/Top_r3_c6.jpg" width="77" height="51" border="0" id="Top_r3_c6" alt="" /></a></td>
            <td rowspan="2"><img name="Top_r3_c7" src="Photoshop/Animation/Top_r3_c7.jpg" width="31" height="51" border="0" id="Top_r3_c7" alt="" /></td>
            <td><img src="Photoshop/Animation/spacer.gif" width="1" height="50" border="0" alt="" /></td>
          </tr>
          <tr>
            <td><img name="Top_r4_c8" src="Photoshop/Animation/Top_r4_c8.jpg" width="107" height="1" border="0" id="Top_r4_c8" alt="" /></td>
            <td><img src="Photoshop/Animation/spacer.gif" width="1" height="1" border="0" alt="" /></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td width="870" bgcolor="#161616"><table width="870" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="605" bgcolor="#FFFFFF" Valign="top"><table width="870" border="0" cellspacing="10" cellpadding="0">
              <tr>
                <td width="572"><table width="553" border="0" cellspacing="0" cellpadding="5">
                  <tr>
                    <td width="300" valign="top"><img src="Crew-Photo" width="300" height="451" /></td>
                    <td width="235" valign="top"><span class="bodytext">Andy Madeleine - Director/ Producer/ Editor <br />
    Adam Rock - Assitant Director<br />
    Jacob Kubon - Director of Photography<br />
    Justin Dixon - Sound <br />
    Vaughn Greathouse - Grip</span></td>
                  </tr>
                </table>
                  <p> </p>
                  <p> </p>
                  <p> </p>
                  <p> </p>
                  <p> </p>
                  <p> </p>
                  <p> </p>
                  <p> </p>
                  <p> </p>
                  <p> </p>
                  <p> </p></td>
                <td width="268" valign="top"><table width="268" border="0" align="center" cellpadding="2" cellspacing="0">
                  <tr>
                    <td bgcolor="#666666" class="center">About</td>
                    </tr>
                  </table>
                  <span class="bodytext"><br />
                    The Crisis is more than just a documentary film, it is an alliance of hip-hop artists, fans,  and likeminded individuals who are interested in preserving the integrity of the hip-hop community, and maintaining hip-hop as an art.
                    Commercial music has taken over the mainstream, and in doing so, created a channeled, often negative image of hip-hop. The Crisis will attempt to educate the uninformed, discredit stereotypes, and push for a positive image surrounding hip-hop culture. <br />
                    <br />
                    </span>
                  <table width="268" border="0" align="center" cellpadding="2" cellspacing="0">
                    <tr>
                      <td bgcolor="#666666" class="center">Get Involved!</td>
                      </tr>
                    </table>
                  <span class="bodytext"><br />
                    Interested in getting involved? Become part of the project or help us promote! Artists, film-makers, or fans, send e-mails to: <a href="mailto:[email protected]">[email protected]</a><br />
                    <br />
                    </span>
                  <table width="268" border="0" cellspacing="0" cellpadding="2">
                    <tr>
                      <td bgcolor="#666666" class="center">Follow The Crisis</td>
                      </tr>
                    </table>
                  <table width="100" border="0" align="center" cellpadding="5" cellspacing="0">
                    <tr>
                      <td><a href="http://www.facebook.com/pages/The-Crisis-Film/120240911333083" target="_blank"><img src="facebook_button_11.jpg" width="35" height="35" alt="Facebook" /></a></td>
                      <td><img src="twitter-button copy.jpg" width="35" height="35" alt="Twitter" /></td>
                      <td><img src="YoutubeButton.jpg" width="35" height="35" alt="YouTube" /></td>
                      </tr>
                    </table>
                  <p> </p>
                  <p> </p>
                  <p> </p></td>
              </tr>
              </table>
              <img src="Photoshop/Bottom_stamp.jpg" width="870" height="100" /></td>
            </tr>
        </table></td>
      </tr>
    </table>
    <div align="center"><span class="Arial"><a href="index.html">Home</a> I <a href="artists.html">Artists</a> I <a href="crew.html">Crew</a> I <a href="gallery.html">Gallery</a> I <a href="contact.html">Contact</a><br />
      Copyright © 2010 Andy Madeleine. All Rights Reserved.<br />
    </span></div>
    </body>
    </html>

  • Mapping when working with file to file Scenario as Attachment

    HI ALL,
    I have a file to file scenario and we are sending 3 files in a single message using the file attachment .(Using additional files option option in file adapter)
    My issue now is can we do mapping tor this file send using this option like fileA will have one mapping logic and FileB also will the same mapping logic ...?
    Thanks
    Souz

    Yeah, requirements are still not very clear.
    If what you meant was have a multimapping fromt he main payload + 2 attachments to a single destination file, it's possible to handle attachments in Java mappings if you're on PI 7.1+ and extend the new Java Mapping class (AbstractTransformation) instead of implementing the StreamTransformation interface.
    Details here:
    http://help.sap.com/saphelp_nwpi711/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
    Best regards,
    Henrique.

  • Freeze up after working with files copied to DVD. A105-4274 Satillite

    When working with files copied to a DVD, when ejecting my computer locks up. Have to turn it off manually and restart. 
    Can use anyother type of DVD, and this does not happen. Only useing DVD with files written to it. This only happens when i work with the files and then eject the DVD. Please I need help
    Solved!
    Go to Solution.

    ebonykaneezer wrote:
    When working with files copied to a DVD, when ejecting my computer locks up. Have to turn it off manually and restart. 
    Can use anyother type of DVD, and this does not happen. Only useing DVD with files written to it. This only happens when i work with the files and then eject the DVD. Please I need help
    I'm guessing that you are just pressing the eject button on the drive.  Don't do that.
    Quit the application that you are using to work with the files.  Then open Windows Explorer, right-click the CD/DVD drive and click on 'Eject'.

  • Very slow responce when working with Office file on DFS-Share

    Very slow responce when working with Office file on DFS-Share
    We have implemented the following configuration
    Domain level Windows 2000. Two member servers with Windows Server 2008 R2, sharing the same DFS namespace with, at the moment, one folder target called Home.
    Users complaining that the access to different MS Office files is very slow. Even creating a new MS Word document using right click context menu takes up to 4 minutes to open. Saving, for example, one singe Excel sheet takes also few minutes.
    Tested with both, MS Office 2007 and MS Office 2010. Makes no difference. When using Office 2010 you can see the message like contacting:
    \\DomainName\Root\Home\UserName. Other files like TXT, JPG or PDF are not affected.
     What makes the thing really weird is the fact, that the behavior described above can absolutely change after client machine being rebooted, suddenly everything becomes very fast and this condition can revert back again just after the next
    reboot.
    Considerations until now:
    1. This has nothing to do with the file size. Even tiny files are affected.
    2. AD Sites are configured correctly and the client workstations see themselves in the correct sites.
    3. This is not an Office issue. If I map my folder target not as DFS, but directly as shared network drive
    \\ServerName\Root\Home\UserName , everything functions as expected
    What makes me suspicious: when using f.e. TCPView to monitor connections, I can see, that each time I make any operation on an office file, there will be a connection established to one of the domain controllers, sometimes to remote ones,
    located in other countries. But on the other side, even if the connection is established to the nearest DC, operations are still very very slow!
    Just forget to say. All clients are Windows 7
    Thanks to all who respond.

    Dear all,
    sorry for the delayed reply. The problem has been solved now and since September 19<sup>th</sup>. everything is functioning as expected.
    What was done:
    Deleted replication targets excepting the initial ones
    Carefully recreated folder targets
    Deleted and recreated  replication groups
    Disabled SNP features on both namespace servers
    Created EnableTCPA registry entry
    Checked that the following Updates are installed
    http://support.microsoft.com/kb/2688074
    http://support.microsoft.com/kb/2647452
    Concering Office File validation KB2553065 - This Update was already declined on our WSUS server
    Kind Regards
    Eduard

  • Disable updating of the menu widget when working with Muse file?

    First of all thank you Adobe for creating Muse - I really like it a lot!
    My question:
    when I work on my website with 250+ pages, it strains the performance to make even the slightest changes to the page structure. I work with two Masters each with much the same horisontal menu widget.
    Adding, deleting and rearranging pages makes the PC (Windows 7 laptop of some but not awesome power) make a halt and take a deep breathe for some seconds. It really interupts the flow of working.
    A crude work around for this is to removing the menu widget in the two masters and put it into a new master page, containing only the copied menu from the two other masters and keeping the rest of the header in place on the original masters to use for aligning on the pages. This way, only one page has to update when working with adding, deleting and rearranging pages.
    I have tried to look for a preference to disable updating the Menu widget when working on the page structures and just enable it the update again when the work is done? does it exist? else I would recommend it strongly :-) Since my work around is a bit tricky/risky to use after publishing ;-)
    Again, thanks a lot for this nice program. Being a selftought CS (now CCC) user I like the ease of control of the webdesign you can get with Muse (at the dispence of other features of course - if you ever wanted to add some sort of database-lookup feature it would be MUCH appreciated. One workaround is to use iframe and an external search/lookup page, that returns results with links back to parent pages. A bit funny construction though :-) ).
    BR
    M. Hecquet

    Glad to know you are enjoying Muse.
    It can be very processor intensive if you have multiple Master pages with their own All Pages menu widget. Take a look at the following threads and refer to Zak's response.
    http://forums.adobe.com/thread/1423767
    http://forums.adobe.com/message/6166722
    See if you are able to use just one All Pages menu widget at your site while taking advantage of the hierarchical Master page feature.
    http://tv.adobe.com/watch/muse-feature-tour/adobe-muse-hierarchical-master-pages/
    We are aware of the performance issues caused by the Menu widget (All pages type) and is something being looked upon by the engineering in one of the upcoming releases.
    Thanks,
    Vinayak

  • Problem when working with package???Please, help me!!!

    I got 3 .java files from one Java tutorial as follow:
    Server.java (in package mygame.server)
    Utilities.java (in package mygame.shared)
    Client.java (in package mygame.client)
    All the above files are placed in "E:\Java Programmes\source"
    After compiling, i got correspponding .class files:
    Server.class (placed in "E:\Java Programmes\class\mygame\server")
    Utilities.class (placed in "E:\Java Programmes\class\mygam\shared")
    Clients.class (placed in "E:\Java Programmes\class\mygame\client")
    But when i run Server.class which contains main method, i got error as follow:
    E:\Java Programmes>java class\mygame\server\Server
    Exception in thread "main" java.lang.NoClassDefFoundError: class\mygame\server\S
    erver (wrong name: mygame/server/Server)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    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)
    That was very puzzled for me. I cannot find out what wrong with my files. Please., any boby, help me!!! I always got this problem when working with package and managing files. Thanls a lot.

    java -cp "E:\Java Programmes\class" mygame.server.Server

  • Problem with Ai when working with a logo (the program gets slow & I can´t move the logo easily)

    Hi there, Hope everyone is well. I have troubles with my Ai when working with a logo, I just want to move it from one point to another and it gets pretty slow to be moved. I am working on a brand new iMac and this problem surprises me a little bit. Do you know why is this happening? I get de Ai from the Creative Cloud...could it be the internet?

    Can you please show a screenshot?
    Are there any placed raster images in your file? Are there any raster effects in your logo file? What are your Effect > Document Raster Effects Settings... ? Also, what are your Preferences > Scratch Disks settings, and how much free space do you have on that (those) drive(s)?
    I doubt it's the internet, unless you're also synching at the same time ... and while this is taking place your internet connection is super-slow.

  • When working with aRGB images, what changes must be made when printing?

    Working in the Adobe RGB color space requires that all components in the chain (camera, software, monitor, printer) be able to handle aRGB. When printing from Photoshop Elements, what changes (if any) need to be made at printing time?

    Thanks Michel.
    I knew about the "more options" dialog box and use it regularly to set
    ICC profiles for my Canon Pro9500 Mark II printer, ensuring also that
    "Photoshop Elements manages colors". I could have asked the question
    better perhaps: "When working with aRGB images, how can I set both an
    ICC printer profile for a specific paper and ensure that printer uses
    the aRGB color space?". As far as I can tell, you can set an aRGB
    profile (either in Photoshop or at the level of the printer), but you
    can't use both the aRGB profile and an ICC paper profile at the same
    time. I am assuming that you can't set an ICC profile for the paper in
    Photoshop Elements and at the same time use the printer's aRGB driver.
    Is that right?
    Craig.

  • Nexus 1000V. problem when working with the console VMWare

    I have a problem when working with the console VMWare.
    Sometimes it is impossible to connect any of the hypervisor to the guest OS managed by them.
    I get the message: "Unable connect to the MKS: Host address lookup for server <name of the hypervisor> failed: No such host is known."
    This message always appears in conjunction with the reconfiguration of virtual switch: "Reconfigure vNetwork Distributed Switch .... Initiated by Cisco_Nexus_1000V_ ....."
    Upon completion of the reconfiguration, Communication console, with guest OS is restored, or on its own or after a reboot srv-vc.
    In this time, I do not see any message in Nexus 1000v log.
    What is this?
    Thanks in advance.

    Smells of a DNS issue.  Are you sure your ESX hosts are reachable from your client via DNS hostname?  Try pinging them from a command prompt/terminal.  You may have DNS server issues.
    As a temp fix, edit your [windowspath]/system32/etc/drivers/hosts file and manually add the ESX host name and IP, then re-test.
    Regards,
    Robert

  • Keymapping problem when working with emacs and openbox

    I have an apple keyboard and I had to do some remapping of the keys to make the mod-4 key the first key to the left of the space bar for when working with Emacs.  The below script worked fine when I was using the dwm window manager, but after switching to openbox I have found that instead of swapping keycodes between the option and command keys, only the command key seems to be working since the initial openbox command-space doesn't work when pressing option-space.
    One odd thing I noticed, was on the new setup when I click run `showkey` and press the option and command keys I get 56 and 125 respectively, but these keys don't work at all when inserting them into the below script instead of the 64 and 133.
    I must admit I created the script below by continually tweaking it until it worked so there could be a much better way of doing it.
    //.xmodmap
    ### capslock => ctrl
    xmodmap -e "clear Lock"
    xmodmap -e "add Control = Caps_Lock"
    ### switch alt and command
    xmodmap -e "keycode 64 = Alt_L"
    xmodmap -e "keycode 133 = Meta_L"
    ### remap of mod 4
    xmodmap -e "clear Mod4"
    xmodmap -e "add Mod4 = Super_L"
    ** Update:  The Alt key is not being swapped with the command key, but is not just a duplicate.  So no M-x can be done by both Alt-x and Command-x
    Last edited by iso (2011-02-19 19:21:01)

    java -cp "E:\Java Programmes\class" mygame.server.Server

  • Win7-64 Photoshop CC blank Save As dialog, then crash, when working with video / frame animations

    Hi, I recently updated to CC from CS6 and am having issues when working with PSDs containing video layers, or are set up as frame animations:  When attempting to Save As, the dialog will be completely blank except for the Save and Cancel buttons.   If I press cancel, then return to Save As, CC then often crashes.
    Here is the Error Event from Event Viewer:
    Faulting application name: Photoshop.exe, version: 14.0.0.0, time stamp: 0x5176451b
    Faulting module name: MediaCoreIF.DLL, version: 7.0.0.0, time stamp: 0x51573a21
    Exception code: 0xc0000005
    Fault offset: 0x00000000001fca98
    Faulting process id: 0x750
    Faulting application start time: 0x01ce9e1925a5045b
    Faulting application path: C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\Photoshop.exe
    Faulting module path: C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\MediaCoreIF.DLL
    Report Id: db6d5f8f-0a0c-11e3-9df9-0026b9cc01d1
    So far I am only having these issues if I have been working with video layers and then frame animations.  Frame animations in particular seem to cause instability as I can often work with video layers all day without a problem.  Then if I import video frames to layers, or open a PSD containing a frame animation, the Save As may not necessarily work.
    Sometimes closing and restarting Photoshop will allow me to save again, but then sometimes a whole system reboot is required.  It is only temporary though.
    I am not running antivirus software or other apps aside from what starts at boot.

    Frustrating that this thread has petered out, since I'm having the exact same issue. Did you ever find a way to improved stability?
    Also of note, the issue followed me across machines. Two weeks ago I purchased a new machine, figured if that didn't solve the problem nothing would... It didn't. :\
    The only similar factors are that the machines both are 64bit Windows 7 (a fresh OEM install on the new box) and have nVidia-brand graphics cards. (Again, though - not the SAME graphics card, picked up a new one with the new machine.) No drive cloning was involved: this is completely new hardware, a fresh factory install of Windows 7, different antivirus (went from AVG to Avast), and new download of Photoshop CC from CreativeCloud.
    Looks like our event details are quite similar, too.
    Log Name: 
    Application
    Source:   
    Application Error
    Date:     
    4/6/2014 1:57:39 PM
    Event ID: 
    1000
    Task Category: (100)
    Level:    
    Error
    Keywords: 
    Classic
    User:     
    N/A
    Computer: 
    REDACTED
    Description:
    Faulting application name: Photoshop.exe, version: 14.2.1.570, time stamp: 0x52f4a9f2
    Faulting module name: MediaCoreIF.DLL, version: 7.0.0.0, time stamp: 0x51573a21
    Exception code: 0xc0000005
    Fault offset: 0x00000000001fca98
    Faulting process id: 0x1ca4
    Faulting application start time: 0x01cf51c68639ec43
    Faulting application path: C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\Photoshop.exe
    Faulting module path: C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\MediaCoreIF.DLL
    Report Id: 5268f22b-bdbd-11e3-b9df-d850e65afc6f

  • How to work with files in folders on Application/Presentation Server

    Hi,
    I am working on interface program in which files are populated in folders in application/presentation server in the format 'ABCsy-datumsy-uzeit.txt'(e.g.ABC20051022161450.txt,ABC20051022161455.txt ) in directory c:\temp.
    I want to sort all these files and read in sorted manner.
    can anybody help me out in this.
    waiting for reply.
    thanks & regards,
    Nitin

    Hi,
      This logic will work for files on presentation server,
    DATA:  l_count TYPE i,
           l_filename TYPE string,
           t_files TYPE string OCCURS 0 WITH HEADER LINE,
           BEGIN OF t_files_sorted OCCURS 0,
             file_prefix(3),
             file_date LIKE sy-datum,
             file_time LIKE sy-uzeit,
             file_extension(4),
           END OF t_files_sorted,
           t_text TYPE TABLE OF w3html.
    CALL METHOD cl_gui_frontend_services=>directory_list_files
      EXPORTING
        directory                   = 'C:\Temp'
        FILTER                      = '*.txt'
         files_only                  = 'X'
       DIRECTORIES_ONLY            =
      CHANGING
        file_table                  = t_files[]
        count                       = l_count
      EXCEPTIONS
        cntl_error                  = 1
        directory_list_files_failed = 2
        wrong_parameter             = 3
        error_no_gui                = 4
        OTHERS                      = 5.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT t_files.
      t_files_sorted = t_files.
      APPEND t_files_sorted.
    ENDLOOP.
    SORT t_files_sorted BY file_date file_time.
    LOOP AT t_files_sorted.
      CONCATENATE 'C:\Temp\' t_files_sorted INTO l_filename.
      CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename                = l_filename
         FILETYPE                = 'ASC'
         HAS_FIELD_SEPARATOR     = SPACE
         HEADER_LENGTH           = 0
       IMPORTING
         FILELENGTH              =
         HEADER                  =
        changing
          data_tab                = t_text[]
        EXCEPTIONS
          FILE_OPEN_ERROR         = 1
          FILE_READ_ERROR         = 2
          NO_BATCH                = 3
          GUI_REFUSE_FILETRANSFER = 4
          INVALID_TYPE            = 5
          NO_AUTHORITY            = 6
          UNKNOWN_ERROR           = 7
          BAD_DATA_FORMAT         = 8
          HEADER_NOT_ALLOWED      = 9
          SEPARATOR_NOT_ALLOWED   = 10
          HEADER_TOO_LONG         = 11
          UNKNOWN_DP_ERROR        = 12
          ACCESS_DENIED           = 13
          DP_OUT_OF_MEMORY        = 14
          DISK_FULL               = 15
          DP_TIMEOUT              = 16
          others                  = 17.
      IF sy-subrc <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *****Your processing here..
    ENDLOOP.
    Also, use the FM that MAX has if you have to work with files on application server by replacing code in the above logic at appropriate places, like replace
    cl_gui_frontend_services=>directory_list_files
    with the corresponding fm
    and replace cl_gui_frontend_services=>gui_upload
    with OPEN DATASET...
         CLOSE DATASET...
    logic.
    Hope this helps..
    Sri
    Message was edited by: Srikanth Pinnamaneni

  • How to work with file system in linux within a JSF app?

    I use this line in my backing bean to log some events:
    FileHandler fhxml = new FileHandler("../webapps/MyWebApp/Log/MyWebAppLog.xml", append);
    fhxml.setFormatter(new XMLFormatter());That works fine in windows but when I deploy it in my Tomcat 6 in linux It doesn't work. How can I work with file system in linux?

    You should never use relative paths to access the filesystem. The path would be relative to the current working directory which is not per se the same in all environments. To convert a relative web path to an absolute file system path, you need ServletContext#getRealPath(). Use this absolute file system path in the java.io stuff. In a JSF application on top of Servlet API you can get the underlying ServletContext by ExternalContext#getContext().
    Alternatively, if the file is located in one of the default paths of the classpath or if its path is added to the classpath, you can also just use ExternalContext#getResource() or even #getResourceAsStream() using just the file name.

  • Cannot print "working with files and folders htm

    When I try to print "Working with files-and-folders" from a Google search, it only prints part of it. I have changed my destination folder to no avail. Thank you or any help, Jack Menendez

    What's the best method for moving all my nonsystem related stuff over to this new driveIan has provided you with the best solution, SuperDuper.
    But if you have a 250 GB external, you really ought to clone your entire system,(only about 3 GB) so you have a backup.
    I keep mine with a complete clone of my internal, that way it is easy to boot from the external and run utilities like Disk Utility, TechToolPro, DiskWarrior, etc. on the internal and vice versa.
    If you run into a problem with say Preferences and don't know which one is the troublemaker, just trash the whole pref folder and use the good one from the clone. Font problem, same deal. And, if diaster ever strikes, you can just boot up from your external and keep right on working - fix the internal when you have time.
    That's my 2 cents anyway
    -mj
    [email protected]

Maybe you are looking for

  • Itunes 11.3 won't recognize ipod 5th generation

    Itunes will not respond to my ipod touch 5 generation after I installed the latest update for the itunes software/program (itunes 11.3). However, my computer (Windows 8 PC) is able to detect my ipod. I've been searching the forum like crazy and tryin

  • Windows 7 installation error using bootcamp

    windows7 installation error then i try to restore my MBP mid 2012 on HD Restored but  its only continues Loading and Loading nothing happen almost 5 hours i try twice same happen.Someone can help me to restored my MBP any idea?

  • How do I get Shuffle to work on my iPod Touch?

    Sometimes Shuffle works for my music and other times it keeps repeating the same song.  I have tried hitting "Shuffle," tried resetting the iPod.  Nothing seems to help!  It usually happens after an update to the operating system.

  • DOM XML Parser in Stateless Session Bean- Not able to generate Container

    I am trying to do some XML Parsing using a DOM Parser in a Stateless Session Bean. I am importing org.apache.xerces.parsers.DOMParser and trying the following statement DOMParser parser = new DOMParser(); Even though I am able to compile and generate

  • How much time on alternate methods of browser testing?

    Here's a question for anyone who has done professional Web design on at least a part-time basis. I'm trying to help a friend decide whether to get an account with a company (browsercam.com) that lets you submit a URL and then see what it would look l