[Vista only] file IOException in system folders...

i get IOExceptions thrown if attempting to write to system folders. this behavior only occurs in windows vista when User Account Control is ON. if i turn it off, the error goes away.
windows xp, 2000 and mac os x are all fine. damn vista!
as far as i know, most programs get this access by invoking the annoying user account control popup (do you want to give this program permission to execute?) or the like. this seems to be automatically invoked for .exes but not with .jars. is there a way i can invoke this permission for my java.exe / javaw.exe program?
at the moment, the only workaround i have is a popup asking users to disable User Account Control. i think all would agree this is a poor solution. its not even a solution. its an embarrassing workaround...
any help would be greatly appreciated. thanks in advance!
-mark
example below.
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import javax.swing.JOptionPane;
public class VistaFileIO
public VistaFileIO()
  String startMenuPath = "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\javaFile.txt";
  String randomSystemFolderPath = "C:\\AppData\\Default\\AppData\\Local\\javaFile.txt";
  if (writeToFile(startMenuPath) && writeToFile(randomSystemFolderPath))
    JOptionPane.showMessageDialog(null,
      "\n\n Successfully wrote both files.\n\n", "Success!", JOptionPane.INFORMATION_MESSAGE);
public static void main (String[] args)
  new VistaFileIO();
boolean writeToFile(String path)
  try
      BufferedWriter fout = new BufferedWriter(new FileWriter(path, false));
      fout.write("tying to write some text!");
      fout.newLine();
      fout.close();
      return true;
  catch (IOException e)
    JOptionPane.showMessageDialog(null,
      "\n\n Couldn't write to the file '" + path + "'\n\n" + getStackTrace(e),
      "IOException Caught", JOptionPane.ERROR_MESSAGE);
    return false;
static String getStackTrace(Exception e)
     String trace = "\n";
     StackTraceElement[] stack = e.getStackTrace();
     for (int i = 0; i < stack.length; i++)
         trace += "\n" + stack;
return trace;

While Vista is not my OS of choice, I like how it actually forces people to think about security ('though it might be better if they didn't just think of it as another annoying message box, but one can't have everything).
Why do you need to write to a system file area anyway? The only valid reason I can think of is if you are trying to write an installer. And if you do that and can't find documentation on how to do that, then you're probably better of to just use an existing one, since writing an installer is far more complex and tiresome as sounds.
Especially with things like UAC in Vista.
Just grab one of the existing (Java) installers (google helps find them!) and be done with it.
If you're not writing an installer, then I'd be curious to know why you need to access those directories.

Similar Messages

  • Hidden files as a system folders

    hello,
    Few months ago, i added folders into my ipod as a hard disk.
    the problem is this-
    Few weeks ago, the folders has been "gone". That's what i thought at first.
    But then, when i scanned my ipod for viruses, i saw it's scanning the folders that has been "deleted". and the ipod is clean from virous.
    So i tried to type the name of the folders in the link line and it worked.
    I discovered that the folders has been changed some how to be a kind of a system folders and i can't see them unless i'm changing it trough the folder option.
    but then when i see the files hidden, i can not change the folders back into a regular status.
    I really need help. I'm on a big trip and my ipod is my hard disk.
    i tried to talk with people who have the same problem and they also waiting for a solution.
    hope to get an answer soon.
    liroy.

    "Thank" you apple for supporting my problems.
    I'll know where to shop next time when i'll search my new techs..

  • I no longer have access to system folders that allow me to remove old or incorrect PAGES templates. Need to find out how to do that. The only way I can do it now is to blank the template and replace the bad template with a blank.

    I no longer have access to system folders that allow me to remove old or incorrect PAGES templates. Need to find out how to do that. The only way I can do it now is to blank the template and replace the unwanted template with a blank. It was previously possible to go to MY TEMPLATES and remove the unwanted templates. I don't if this issue is before or since installation of 10.8 (a nightmare in my case, which led to significant failure issues).  And because I haven't tried to remove templates since finally managing to install 10.8 (now at 10.8.4), I don't know if this is typical of the newer OS or a problem. I've been a Mac user for more than 25 years, but I think I'm nearing the end of the road. By the way, I've never needed to do this before because the manuals always offered an answer... they don't seem to do that anymore. In any case, I don't know how this works... I'd prefer an email reply if that's possible. But that would probably be too easy, and I don't know how to get a reply.

    Thanks, I appreciate the help.  I think this is one of the problems Apple is creating by changing the OS so often. I had fomer colleagues at [a major aerospace contractor] who told me that so many original files were ultimately lost because of the deadly change in the "Save As" operation that they are now afraid of every OS update. Apple has badly damaged their support base with that very prominent company (they won't update now until they've fully examined and understand changes in the pre-conditioned nature of OS computer functions), and they are a whole lot less enthaled with Mac-related equipment/software. Can't blame them, I too used orginal files that way (as easy-to-use templates), and lost some important files before I realized what was happening (to late to revert). Companies should not have to retrain employees each time an OS gets an update, it's can be very expensive several different ways. They learned a painful lesson with that one. And because I'm now retired and don't use multiple devices, I need iCloud like I need a hole in the head... but I'm told there's no way to keep Apple out of my computer. Fortunately, because of major problems when initially installing Mountain Lion, one hold-over of the hardware/software damage I experienced was that iCloud can no longer access my computer even though everything else is working fine again. That was the only "good luck" I had as a result of that expensive nightmare.

  • Uploading file: Browse System Folders?

    Hi there.
    When uploading a file, is it possible to browse
    the system folders such as tmp, etc, and bin?
    And with saving things with TextEdit, why can I not
    browse, and only save in preset folders?
    Thanks,
    Troy

    Hey Troy!
    With the uploading and the TextEdit yes sometimes it doesn't allow you to just browse wherever you want. (Unless someone else knows a trick?)
    You just have to work around it if there's not a full browse option made available. You can always save some folders on the left side of your Finder window if that helps?

  • Solaris 10  - After installation read only file system

    Dear All,
    I have installed the Solaris 10 on my x86 system with out any problem. The installation was completed successfully. I have followed the installation instructions that are mentioned in the following link.
    http://docs.sun.com/app/docs/doc/817-0544/6mgbagb19?a=view
    I am facing a different problem. I am not able to create even a single file / sub-directory on any of the existing directories. It always says READ ONLY file system can not create firl / directory.
    Please help me how to resolve this issue.
    Thanks in advance.
    Regards,
    Srinivas G

    What do you get for 'svcs -xv' output?
    Darren

  • Crashes and read-only file systems

    Notice: I apolgize for the long post, I've tried to be as thorough as possible.  I have searched everywhere for possible solutions, but things I've found end up being temporary workarounds or don't apply to my situation.  Any help, even as simple as, "have you checked out XYZ log, it's hidden here", would be greatly appreciated.  Thanks
    I'm not sure what exactly caused the issues below, but they did start to happen within a day of running pacman -Syu.  I hadn't run that since I first installed Arch on December 2nd of this year.
    Setup:
    Thinkpad 2436CTO
    UEFI/GPT
    SSD drive
    Partitions: UEFISYS, Boot, LVM
    The LVM is encrypted and is broken up as: /root, /var, /usr, /tmp, /home
    All LVM file systems are EXT4 (used to have /var and /tmp as ReiserFS)
    The first sign that something was wrong was gnome freezing.  Gnome would then crash and I'd get booted back to the shell with all filesystems mounted as read-only.  I started having the same issues as this OP:
    https://bbs.archlinux.org/viewtopic.php?id=150704
    At the time, I had /var and /tmp as ReiserFS, and would also get reiserfs_read_locked_inode errors.
    When shutting down (even during non-crashed sessions) I would notice this during shutdown:
    Failed unmounting /var
    Failed unmounting /usr
    Followed by a ton of these:
    device-mapper: remove ioctl on <my LVM group> failed: Device or resource busy
    Nother of these errors had ever appeared before.
    After hours of looking for solutions (and not finding any that worked) I was convinced (without any proof) that my Reiser file systems were corrupt and so I reformatted my entire SSD and started anew - not the Arch way, I know   I set all logical volumes as EXT4.
    After started anew, I noticed
    device-mapper: remove ioctl on LVM_SysGroup failed: Device or resource busy
    was still showing up, even with just a stock Arch setup (maybe even when powering off via Arch install ISO, don't remember).  After a lot of searching, I found that most people judged it a harmless error, so I ignored it and continued setting up Arch.
    I set up Gnome and a basic LAMP server, and everything seemed to work for a couple of hours.  Soon after, I got the same old issues back.  The System-journald issue came back and per the workaround on https://bbs.archlinux.org/viewtopic.php?id=150704 and a couple other places, I rotated the journals and stopped journald from saving to storage.  That seemed to stop THOSE errors from at least overwhelming the shell, but I would still get screen freezes, crashes, and read-only file systems.
    I had to force the laptop to power off, since poweroff/reboot/halt commands weren't working (would get errors regarding the filesystems mounted as read-only).
    I utilized all disk checking functions possible.  From running the tests (SMART test included) that came as part of my laptop's BIOS to full blown fsck.  All tests showed the drive was working fine, and Fsck would show everything was either clean, or
    Clearing orphaned inode ## (uid=89, gid=89, mode=0100600, size=###
    Free blocks count wrong (###, counted=###)
    Which I would opt to fix.  Nothing serious, though.
    I could safely boot back into Arch and use the system fine until the system decides to freeze/crash and do the above all over again.
    The sure way of recreating this for me is to run a cron job on a local site I'm developing. After a brief screen freeze (mouse still moveable but everything is otherwise unreponsive) I'll systemctl status mysqld.service and notice that mysqld went down.
    It seems that it's at this point my file systems are mounted as read only, as trying to do virtually anything results in:
    unable to open /var/db/sudo/...: Read-only file system
    After some time, X/Gnome crashes and I get sent back to shell with
    ERROR: file_stream_metrics.cc(37)
    RecordFileError() err = 30 source = 1 record = 0
    Server terminated successfully (0)
    Closing log file.or_delegate.h(30)] sqlite erro1, errno 0: SQL logic error or missing database[1157:1179
    rm: cannot remove '/tmp/serverauth.teuroEBhtl': Read-only file system
    Before all this happened, I was using Arch just fine for a few weeks.  I wiped the drives and started anew, and this still happens with just the minimal number of packages installed.
    I've searched for solutions to each individual problem, but come across a hack that doesn't solve anything (like turning off storing logs for journal), or the solution doesn't apply to my case.
    At this point, I'm so overwhelmed I'm not even sure where exactly to pick up figuring this issue out.
    Thanks in advance for any help

    Did this occur when you booted from the live/install media?
    What is your current set up? That is, partitions, filesystems etc. I take it you have not yet reinstalled X but are in the default CLI following installation?
    If turning off log storage didn't help, reenable it so that you may at least stand a chance of finding something useful.
    What services, if any, are you running? What non-default daemons etc.?
    Does it happen if you keep the machine off line?
    Have you done pacman -Syu since installation and dealt with any *.pacnew files?
    Last edited by cfr (2012-12-26 22:17:57)

  • (Read-only file system) ,EXT3-fs error (device sda6) in start_transaction, FOR MY MCS7825I3-K9-CMC1

    I got this problem for my cucm version System version: 7.0.2.20000-5
    Product Part Number: MCS7825I3-K9-CMC1
    java.io.FileNotFoundException: /var/log/active/platform/log/cli.bin (Read-only file system)
    log4j:ERROR No output stream or file set for the appender named [CLI_LOG].
    EXT3-fs error (device sda6) in start_transaction: Journal has aborted   SeverityMatch - Critical kernel: EXT3-fs error (device sda6) in start_transaction: Journal has aborted   SeverityMatch - Critical kernel: EXT3-fs error (device sda6) in
    Any Advice to solve this issue ?
    Kind Regards
    Mohammed khamis
    java.io.FileNotFoundException: /var/log/active/platform/log/cli.bin (Read-only file system)
            at java.io.RandomAccessFile.open(Native Method)
            at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
            at com.cisco.iptplatform.fappend.ciscoRollingFileAppender.restoreIndex(c                                                                            iscoRollingFileAppender.java:100)
            at com.cisco.iptplatform.fappend.ciscoRollingFileAppender.setFile(ciscoR                                                                            ollingFileAppender.java:43)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.                                                                            java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces                                                                            sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.jav                                                                            a:196)
            at org.apache.log4j.config.PropertySetter.setProperty(PropertySetter.jav                                                                            a:155)
            at org.apache.log4j.xml.DOMConfigurator.setParameter(DOMConfigurator.jav                                                                            a:530)
            at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.ja                                                                            va:182)
            at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurat                                                                            or.java:140)
            at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfi                                                                            gurator.java:153)
            at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOM                                                                            Configurator.java:415)
            at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:3                                                                            84)
            at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:783)
            at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java                                                                            :666)
            at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java                                                                            :616)
            at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java                                                                            :584)
            at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:6                                                                            87)
            at sdMain.main(sdMain.java:511)
    java.lang.NullPointerException
            at com.cisco.iptplatform.fappend.ciscoRollingFileAppender.updateIndex(ci                                                                            scoRollingFileAppender.java:117)
            at com.cisco.iptplatform.fappend.ciscoRollingFileAppender.nextFileName(c                                                                            iscoRollingFileAppender.java:92)
            at com.cisco.iptplatform.fappend.ciscoRollingFileAppender.append(ciscoRo                                                                            llingFileAppender.java:74)
            at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
            at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders                                                                            (AppenderAttachableImpl.java:57)
            at org.apache.log4j.Category.callAppenders(Category.java:187)
            at org.apache.log4j.Category.forcedLog(Category.java:372)
            at org.apache.log4j.Category.info(Category.java:674)
            at sdMain.main(sdMain.java:525)
    log4j:ERROR No output stream or file set for the appender named [CLI_LOG].
       Welcome to the Platform Command Line Interface
    admin:java.io.FileNotFoundException: /var/log/active/platform/log/cli.bin (Read-only f                                                                            ile system):java.io.FileNotFoundException: /var/log/active/platform/log/cli.bin (Read-only f                                                                            ile system)

    Hello
    Thanks Manish .
    I found many articles in cisco which says that this error is related to the bug which need firmware upgrade , but I don't have support from cisco because EOS.
    https://supportforums.cisco.com/document/49511/updated-16-february-2011-ibm-7816-i4-782x-i4-filesystem-errors
    Solution
    The file-system going read-only issue which has recently been affecting server models MCS-7816-I4, MCS-7825-I4, and MCS-7828-I4 (or their IBM equivilants) in the field is addressed by CSCti52867 - "IBM 7816-I4 and 782x-I4 READONLY file system".
    The fix for CSCti52867 is now available and requires the application of two patch files.  Install both of these patch files in the order listed below.
    1. First install ciscocm.ibm-diskex-1.0.cop.sgn 
         The Readme file ciscocm.ibm-diskex-1.0.cop.sgn includes installation instructions for this .cop.sgn.
         Make sure to only install this utility when show hardware CLI output indicates the array is in a healthy state.
         If your server has never had the filesystem go readonly then this step is optional. 
    2. Next install Cisco-HDD-FWUpdate-3.0.1-I.ISO .
         The Readme file Cisco-HDD-FWUpdate-3.0.1-I.Readme.pdf includes installation instructions for this ISO.
         This installer is completely independant of the OS installed on the server.
    Note:  Installing the FWUpdate v3.0(1) or later will get you firmware with the fix for this defect.  It is always recommended that you apply the latest FWUCD available for your server.
    Refer to the Release Note of CSCti52867 and the Readme file for each of the above mentioned patch files for more details.
    Symptoms
    The file system goes READONLY, then CUCM services may go down, the server may become "unresponsive" meaning that it is not possible to ssh into the server, login to the console, or web into the server although it may still respond to pings.
    Traces from all services stop writing (including syslog)
    You see the following error on the server console
    EXT3-fs error (device sda6) in start_transaction: Jornal has aborted

  • Help with a fcpx library that is locked "could not be opened. Read-only file system"

    Hi all,
    I recently moved all my fcpx projects/events to a new Harddrive - I thought I did this correctly by copying/duplicating all projects/events from within FCPX.
    When I last used FCPX all the projects/events were there - no issues.  Also, when I look at package contents - everything is still there in terms of events and file sizes.  
    All the library files are on an external hard drive, on an encrypted disk image.  Now a week later I have tried to open FCPX and I get the following error
    "The document “MND_Z_FCPX” could not be opened. Read-only file system" and nothing will open.
    Have checked permissions - these all seem in order.  OSX is10.9.5 
    Any suggestions as to what might be the issue? 
    Thanks in advance.
    R

    the permissions themselves look ok - they have my two computer profiles as read/write.   I also note that on some occasions the library has opened in my other Computer profile, but not in the one that I want it to open.
    So I think you're right, there is something with permissions happening here.  I keep a work and personal computer profile.
    Don't know how it happened - but the volume is definitely Read Only - even though I've created a Read/Write permissions for it

  • [SOLVED] /bin/tar: Cannot utime: Read-only file system

    While doing a tar backup on my servers, I get this error:
    /bin/tar: /usr/local/bin/sendEmail: Cannot utime: Read-only file system
    The error happens on all files in /usr that I'm trying to backup. I know why the error is happening -- I deliberately mount /usr as read-only.
    I'd like to know why tar is trying to "utime" my files and how I can stop that behaviour if possible?
    This is my tar command:
    tar cjf /mnt/backup/backup.tar.bz2 --label='backup_090116' --atime-preserve --no-wildcards-match-slash --files-from=/root/backup.include --exclude-from=/root/backup.exclude
    TIA
    Last edited by fukawi2 (2009-01-17 07:53:02)

    Isn't it quite pointless to preserve timestamps on files from a filesystem on which timestamps aren't modified? Maybe tar tries to update the timestaps prior to archiving the file and is that giving troubles.

  • Read only file system and Problems witth pacman -S

    Hi im a newbie at Arch, and i have 2 problems...
    1) When I log in as a root user i can't modify any of the configuration files cause i only have a " Read only file System" does anyone know how  I can  change this cause im sick of using my live cd to modify the files i need to change..
    2) I have problems with pacman -S it says " Unable to lock database if you're sure pacman is not already running you can remove /tmp/pacman.lck"
    when i do rm /tmp/pacman.lck it says that it can't be done cause the file doesn't exist.. and Im sure that my dhcp and dns is working fine... (just in case of any wonder)
    Well if someone could help me i really would appreciate it
    thanks

    # <file>      <dir>           <type>     <options>           <dump>      <pass>
    none                 /dev/pts        devpts     defaults               0          0
    none                 /dev/shm        tmpfs      defaults           0          0
    /dev/cdrom           /mnt/cd          iso9660   ro,user,noauto,unhide  0          0
    /dev/dvd             /mnt/dvd         udf       ro,user,noauto,unhide  0          0
    /dev/fd0         /mnt/fl          vflat     user,noauto            0          0   
    /dev/hda6          swap            swap      default                0          0
    /dev/hda5/            ext3        defaults      0  0
    /dev/hda7/mnt/windows vfat  rw,usev,auto,umask = 000 0 0
    fsck -fC /dev/hda5 didnt work it said... "Error while executing fsck.ext3 for /dev/hda5

  • What to do with Previous System Folders?

    First of all, Happy New Year to all!
    I just spent two days doing an "Archive and Install" on my iMac at the advice of an Apple Genius who checked out my iMac at the Apple store. He said my iMac was running very slow but couldn't find any reason for it.
    The first "Archive and Install" took six hours on the 30th, and then it was several more hours to get the software back up to speed with all of the updates. But after all of that, my system ended up in the Kernal Panic screen on start up. So today I got on the phone with Apple Care and they had me boot up with the Leopard Install DVD in the drive, holding down the C key. That worked, but I was back to square one with my Archive and Install.
    The second try yesterday took another 6 hours, and then it took several hours to get my software back up to speed again. The Apple Care guy told me the Install should only take an hour, so that right there tells me something isn't right. Anyway, here I am after two very long days, with my iMac at least functioning again, albeit not faster as I had hoped. It's still running slow as molasses. This post has taken me forever to write due to only being able to type three or four letters, then wait for SBOD to stop spinning, then another two or three letters. It's so frustrating.
    But, my main reason for posting here is to ask two questions.
    1. The two "Archive and Installs" left me with two "Previous System Folders" on my hard drive that are almost 21 GB's!! I had 74 GB's free before and now have only 53. Can I dump those folders and get my space back? I sure hope so. If so, how do I safely do it?
    2. The three folders on my dock at the right end; Applications, Documents, and Downloads, used to be in nice neat folders with symbols on them indicating what they are, but now they're just plain folders with stuff sticking out of the top of them, and in the case of the Applications folder, the Address book app is sitting on top of the folder, rather than inside of it, and all I see is the Address book icon, not the folder. How do I get those folders back to normal? I hate the way they look now!
    I'm very frustrated that I'm having all of these problems with my iMac, but grateful at this point that I extended my warranty before the first year was up. I'm definitely going to have to take it back in for more help. I don't think it should take four minutes for iTunes to start up and shut down, four minutes for iPhoto to shut down, or two minutes for a photo to open up in iPhoto after clicking on it, etc., etc. I have the Spinning Beach Ball of Death spinning way more than it should! I'm tired of constantly having to wait for it to stop so I can continue.
    Ironically, I installed two more Gigs of RAM less than six months ago so that I would have a faster computer, but I never really noticed a difference. Although it wasn't this slow the first few months.
    Thanks in advance to anyone who can answer my two questions up above, and thanks for listening to me while I expressed my frustration.
    Deb

    Hi Deb,
    This may be ten days late, and way, way too long, but you might want to try some of these suggestions, especially if AppleCare, or someone else, hasn't fixed it for you. You'll probably need to print out all this stuff. It's all stuff I've found useful in similar situations. There is no particular order to check things, but you might want check the utility "Activity Monitor" first and then try setting up a new account. That has worked for me.
    Launch "Activity Monitor" (found in the utility folder inside the root Applications folder) and click on the CPU column to see if some background process or another application is running and using a large percentage of the processor's time. Also check the RAM columns to see if something is using a lot of the available RAM. If there is something that doesn't seem right, you can select it and double click the questionable item - a dialog box will appear that allows you to quit. That may solve the problem of spinning "pizza wheels" of death without a restart. At the least you'll have a good question to ask AppleCare (though they'll definitely suggest Activity Monitor.
    You may also want to set up a new account in Apple Menu/System Prefs/Accounts with a different name and password. Then within that account try launching some apps from the Root Applications folder. They may now work in the new account. You can also install some apps you use most within the new account. Those apps will be placed in the Applications folder within the new home folder of the new account - NOT in the root Applications folder (the one you see when you double click the hard drive icon).
    If you haven't set up a new account before it will seem strange when you first startup. Nothing is the same - the desktop, dock, etc will be like when the machine was new. But often, using the new account, and finding the sluggishness is now gone, tells you the problem was in the old account - even if you can't find what the problem was. The old account is still there. But setting up the new account will take some additional drive space if you reinstall applications.
    Whatever you do, *_don't just delete the old account_* as that will also delete all your documents, videos, photos, etc. You can copy or move between accounts with your administrator password. The Library folder in the old Home folder will contain a lot of stuff you may want to keep, but also can contain the corrupt file that caused the sluggishness problem. You may want to copy the contents of different User/New Acct Home folder/Library folders a little at a time and reboot after changes. If the sluggishness reappears, then pull out the last items you put in and try to narrow it down.
    If you don't want to set up a new account initially try some of these suggestions. Uninstall and reinstall the major applications that run slowly. Use the uninstaller that comes with the app. If there is none, then just reinstall and restart. That might solve the problem. Reinstall whatever apps you need. Can't hurt and may eliminate some file corruption.
    After you restart, and BEFORE you launch any application, press and hold the Cmd (Apple) Key and then hit tab. You will see which apps are running in addition to the Finder. If there is stuff you didn't launch, keep pressing Cmd-Tab which will highlight each application. When selected, you can quit the application [Cmd-Q ]. Or just release the Cmd-Tab keys with the app selected and it's name should appear at the top left of the menu bar. There, you can pull down the menu and quit it (or press Cmd-Q). If it doesn't quit try to Force Quit [Opt-Cmd-Escape]. Try not to quit the Finder. Then launch the apps you need and see if they are still sluggish.
    If there was stuff running and you don't know why, check your Account (Apple Menu/System Prefs/Accounts). Accounts is the first item on the System row (next to last row down). Click Accounts and when it opens, click the the account you're using (if there are more than one). Then click the Login Items tab near the top of the window. You'll see a list of apps that launch whenever you start up (sometimes in the background). If you don't recognize some of what's there you can remove them using the [-] icon. You'll have to unlock the account with your password and then re-lock it to prevent others from changing stuff.
    Restart or log-out and log-in and see if the machine is faster without one or more of the removed items. There are things that are best not touched, but you'll probably know by their names. Pretty much anything you'd add will be found in the Applications or Utility folders. Other stuff is added by applications when they are installed. Make a list of whatever you remove if you have to add it back. If an application needs something you removed, you may be asked to reinstall the app.
    That's it - hope it helps.
    MartyP

  • How to upload and Download the file in a system through java programing

    I am trying to upload a file as well as want to download the uploaded file in my system....I don't have any server an all.
    I want to implement this in my system only .
    I got this code but i don't know ,where i have to make the change and what are the parameters i have to pass.
    can any one help me on this code ....please
    here some piece of code
    File Upload and Download Code Example
    package com.resource.util;
    public class FileUpload
    public void upload( String ftpServer, String user, String password,
    String fileName, File source ) throws MalformedURLException,
    IOException
    if (ftpServer != null && fileName != null && source != null)
    StringBuffer sb = new StringBuffer( "ftp://" );
    // check for authentication else assume its anonymous access.
    if (user != null && password != null)
    sb.append( user );
    sb.append( ':' );
    sb.append( password );
    sb.append( '@' );
    sb.append( ftpServer );
    sb.append( '/' );
    sb.append( fileName );
    * type ==> a=ASCII mode, i=image (binary) mode, d= file directory
    * listing
    sb.append( ";type=i" );
    BufferedInputStream bis = null;
    BufferedOutputStream bos = null;
    try
    URL url = new URL( sb.toString() );
    URLConnection urlc = url.openConnection();
    bos = new BufferedOutputStream( urlc.getOutputStream() );
    bis = new BufferedInputStream( new FileInputStream( source ) );
    int i;
    // read byte by byte until end of stream
    while ((i = bis.read()) != -1)
    bos.write( i );
    finally
    if (bis != null)
    try
    bis.close();
    catch (IOException ioe)
    ioe.printStackTrace();
    if (bos != null)
    try
    bos.close();
    catch (IOException ioe)
    ioe.printStackTrace();
    else
    System.out.println( "Input not available." );
    }

    At least that is what the code you posted suggests to me.It looks like that to me too.
    I believe that
    URLConnection urlc = url.openConnection(url);Will return you an FTP URLConnection implementation if you pass it a ftp:// url
    So for simple FTP ops, you don't need any external libs.
    Actually, looking at your code, this is already what you are doing, so I really don't get this:
    am not using FTP server..... i want to implement in my system only ....So How i will do.
    Can you give me any idea based on this code Can you explain a bit more what you need?
    patumaire

  • Multiple System Folders in Operation! Consolidation Tips?

    Hi from a first-wave Mac OS 6 user (Started with a Plus and 20MB External; )
    An obviously stupid situation is plaguing my longtime PMac G3/266 running OS 8.6.
    (Yes I DO run OSX latest versions on other machines - this is a legacy system i maintain for various reasons incl. access to otherwise orphaned files & apps).
    Long story condensed...Have 2 Seagate internal HDs running. Newer one ('07: ) was installed with intent to use for backup and extra storage. Somehow along the line
    TWO System Folders became active and over time of course some elements of one System have become intermingled with the other. Goal here is, as sensibly/simply as possible, unify a single system...whether that's back to 8.6, or migrating everything i NEED to an OS 9.2 drive (wiser i suppose). It has been SO long
    that I don't even remember the fundamentals of migration from OS 8 to 9...but
    complicating matters is this multiple Sys Folder issue.
    Don't want to lose currently-active preferences... data-access to stuff like
    Filemaker Pro files with time-sensitive current data like invoicing etc.
    All this said, any pointers on how to proceed, to effectively keep the current status of everything in current Active use - but eliminate the other System folder wherein some components are affecting apps/docs/files in the OTHER Sys. Folder and..vice versa. This is a fragile process especially when it comes to stuff like email in an old version of Netscape Communicator that I use on this machine. As far as that app., there are multiple User folders but we need to salvage the RIGHT User Profile and Data i.e. i.e., the one that's most current and in-use.
    I don't think this is as nightmarish as it might seem on the surface...I'm just looking to map an orderly strategy to approach it. What I really don't want to lose afa the System, is the correct Preferences for the active apps. Again, it seems some apps are drawing info from BOTH System/Pref folders.
    BTW DW/DiskWarrior was used for Directory creation on the newer of the drives, in case that's of any relevance.
    I was thinking of just picking up another HD, putting it in another, newer desktop (AGP/G4) and then migrating everything from both HDs on the older 8.6 OS machine to the newer machine which would be on 9.2.2...but under the circumstances, not sure that would be simple/straightforward unless I first resolve the duplication thing with what's on the "dueling 8.6 HDs" machine.
    Sorry I didn't really shorten a long story after all but thanks and appreciation for any advice if you've read this far.
    MikeE

    Don Archibald wrote:
    Hi, Mike -
    …TWO System Folders became active….
    Two System Folders may be present on the machine, but only one can be active at any given time.
    Are the two System Folders each on a separate drive? Or are both on the same drive?
    If each is on its own drive, then the active one can be identified in several ways. The easiest way is to look at the drive icons on the right-hand side of the desktop - the icon for the boot volume (meaning the drive whose OS is in use) will be the one on top. If this is constant through reboots, then there is no change in which OS is being used, and its contents will be the most current.
    Many folk have multiple OS's available on their machines. Usually they are segregated by being on different volumes (a volume - an unpartitioned drive, or a partition of a partitioned drive).
    For example, I have two hard drives in the G4 I'm using. One drive has been partitoned into four volumes, the other into five volumes; in addition, I have a full-time external firerwire drive. This gives me 10 separate volumes. All could be bootable if I had an OS on each; I do have OS's on 7 of them, so I have 7 bootable volumes. One is a full duplucate (backup) of my primary boot volume, including the OS (OS 9.1); others are of different OS versions or configs, used for testing purposes or for specific needs.
    There is no cross-contamination in this arrangement; prefs are updated, etc., only in the System Folder for the active OS, meaning the one then running the machine.
    Hi Don, thanks for writing.
    +> Are the two System Folders each on a separate drive? Or are both on the same drive?<+
    The two System Folders are on each on separate drives.
    +> If each is on its own drive, then the active one can be identified in several ways. The easiest way is to look at the drive icons on the right-hand side of the desktop - the icon for the boot volume (meaning the drive whose OS is in use) will be the one on top. If this is constant through reboots, then there is no change in which OS is being used, and its contents will be the most current.+
    >
    OK, will check that. Trying to get a handle on what is going on here. Several anomalies that i need to identify the cause of. For a simple example - Old "Stickies Notes" will boot up one time and on next restart, a default startup with that app. appearing "as-new" -- i.e. no prefs at all...no database connectivity and specific "stickie-notes" that would otherwise show up under one System's startup.
    Honestly it's as if the System will startup randomly from either one Folder or The Other...and/or....choose Prefs from One or The Other each time.
    Just trying to get everything to jive under one singular System with no influence from the Other.
    Will look at the drive icons on reboots to try and single out the most-current and hopefully can sort things out that way. As I say, I'm willing to simply move the whole "universe" from both Drives up to a single new OS 9 environment, if i can find a way to do it relatively easily.
    Thanks again
    Mike

  • Files Not Sorting Within Folders

    I have my working AppleWorks files on my external HD. Recently the files within folders donot sort. As a test I changed a file name staring with an M to an A. The file did not sort to the top of the list. As far as I can tell nothing has changed within my system. The files on my system HD are OK. The other files on the external HD are OK - only the AW files are wrong.
    Under the "view" options the name sort is only available for the Desktop. When I open the external HD or highlight a folder the name sort option is not available. I must be missing something but what..
    Bob61

    Problem solved. Clicked on the name column and went from there. So soon we forget!!Bob61

  • Previous system folders hav 10gb on an 80mb disk  could not repair vol

    I'm trying to install Virtual PC. It seems to hang and the reason I suspect is there isn't enough disk space. Can I delete the previous system folders? I shouldn't need them for anything I can think of. There are two of them 5gb each.
    I have another problem I ran disk repair and it said one vol could not be repaired in red but it did say 1 vol was repeaired. I'm not sure what this means since there should only be one vol on my hard drive? When I ran disk repair I got the following messages:
    Checking HFS+ vol
    checking Extents overflow file
    checking catalog file
    Reserved words in catalog record incorrect data
    checking multi-linked files
    checking catalog hierarchy
    checking extended attributes
    Invalid leaf record count should be 6706 not 549
    checking vol bitmap
    checking vol info on Mac HD
    Repairing vol
    the vol was repaired
    1 HFS vol repaired
    1 vol not repaired
    I have MySQL Server and PHP installed. I just upgraded from Tiger to Leopard. I need VPC to run and I need space to install Windows on the Mac HD but I'm wondering why disk repair could not repair 1 vol and why it thinks there were two volumns.
    thanks in advance,

    Is there a second partition for Virtual PC, or other use?
    In Disk Utility, each partition should be listed below the main line (with the Drive name/size).
    If there are two (or more) then you have multiple volumes.
    The one named "Mac HD," that was repaired, is almost certainly your boot volume, so look at the other(s).
    See what the format of each is, by clicking on it and looking at the bottom. If it's not some flavor of Mac OS Extended, then DU likely can't repair it.

Maybe you are looking for

  • Directory structure of JMS application

    either we must follow any directory structure just like servlets and ejb as web-inf and meta-inf in JMS.

  • First connection with IC  webClient

    Hi, I've got a strange behaviour when I execute CRM_IC (in se80).  The IE is launched automatically and after a while (short time) a second IE shows up. In the first one I've got a Interaction Center framework which is visible but with only two butto

  • How to play sounds on Frames

    I'm been working with sounds on applets and is pretty easy play sounds and build funny stuff. But now i need to play sounds on a Frame (Application) and i realize that sounds can be load only on applets(so far thats what i know) If anyone knows how p

  • Analytic Function: comparison is not working

    Dear Experts, I've got a Product table: - Name - Version - Status I want all the products with: - a SOLD version n - and at least a NONSOLD n+i version In fact I only want the Name and Version for the NONSOLD. I tried the following request but the (p

  • CoolType.dll  error in Photoshop Cs6

    Hi, This is the first time i use the Ps CS6. However i have a problem like this: Problem signature: Problem Event Name:     APPCRASH Application Name:     Photoshop.exe Application Version: 13.0.1.0 Application Timestamp:     519c8a03 Fault Module Na