Preferences under the user home in win and linux

hi,
how can i save my looger-file under the user home and not in the registry usw.? under my user home in windows i see lots of .PROGRAMNAME directorys! is there any class for using that?

Preferences or log files? Your title says "preferences" and your text says "looger" (which I'm assuming is just a typo).
If you want to store user-specific data (aka preferences), then use the new java.util.preferences classes and use the user context.
If you want to store files (like log files) in the user's directory, then use the System property DrClap suggested to get the directory name.

Similar Messages

  • Firefox 4 and the previous 3.x version fail to update changed user home pages? After reboot the ancent home pages reappear and the replace the now ones. Why & how to fix this software bug?

    - Firefox 4.0 is used as preferred browser
    - One can change the user home pages. The new homepages are found & work ok after closing and reopening Firefox.
    - However, after rebooting the laptop (HP Elitebook), old Firefox home pages reappear, they replace the new ones.
    - If I remember correctly this bug appeared already prior Firefox 4.0, this malfunction/ bug was noted in some last winter version before the v 4.0.
    - Help/ Bug fix is appreciated!

    - Firefox 4.0 is used as preferred browser
    - One can change the user home pages. The new homepages are found & work ok after closing and reopening Firefox.
    - However, after rebooting the laptop (HP Elitebook), old Firefox home pages reappear, they replace the new ones.
    - If I remember correctly this bug appeared already prior Firefox 4.0, this malfunction/ bug was noted in some last winter version before the v 4.0.
    - Help/ Bug fix is appreciated!

  • When logging on to Windows 7 user gets a second mapped drive to the users home folder

    Morning,
    I'm working through an issue we've discovered whilst trialing Windows 7.  Our environment is setup as follows.
    Domain Controllers are Windows Server 2003
    Clients are Windows XP and Windows 7
    Windows XP and Windows 7 Clients are in seperate OU's
    All Windows XP Group Policies apply to Windows XP And Windows 7 clients, Windows 7 policies are then applied to Windows 7 clients after
    Windows 7 policies are setup such that any setting defined in a Windows XP Group policy is left unconfigured in the Windows 7 Group policy and only new Windows 7 settings have been set in Windows 7 Group Policies.
    We have users home folders mapped in their Account Directory account setting and set to H:\   to connect to
    \\domainname\dfs\home\username
    In addition we also as a fail safe map the drive via a login script using net use
    This has worked fine for years in windows XP, if Active Directory failed to map the drive for any reason then the login script would then map the home drive.
    In Windows 7 we have noticed a curious error.  We found after a period of a couple of weeks we suddenly started getting a new drive mapped.  This was identical to the H:\ drive mapping but was instead under drive Z:\.  In other words, the
    users home folder is mapped twice on h:\ and z:\.  This is not affecting any of the Windows XP users.
    I have gone through several logic reasons to ascertain why this has happened with the following findings.
    1. Originally we thought the error appeared when we tried out mapping the home drive using the mapped drives functionality new in Windows 7 group policy under preferences > windows settings > drive maps.  However, after forcing it to delete the
    Z:\ drive using this functionality we only succeeded in removing it with a group policy present to do it.  As soon as we removed that group policy the Z:\ drive came back
    2. Secondly i thought the reason we would be getting a z:\ drive when we haven't specified it anywhere is because active directory is trying to map to the H:\ Drive but it is already present therefore in Windows 7 it tries to map to a different drive. 
    Using Windows logic it tries the highest letter first which is unlikely to be in use i.e. z:\.  This makes sense because our logon script uses a net use h:\ command to map the drive and i believe by default these are set to perisistent.  Therefore
    the next time the user logs on H:\ is already mapped so the logic in Active Directory accounts maps the drive to Z:\ instead hence we end up with two mapped home drives.  To test this i altered the login script to set the drive maps to
    non persistent using persistent:no.  The logic here was that when the user logged off the drive would become unmapped so that when Active Directory tried to map the drive it would be able to use H:\.  Unfortunately this was not the case and
    Z:\ remains.
    3. Here is where i resolve the issue but i don't know why and is the bit i need answering.  If i go into my account on Active Directory and go to Profile and set the home folder drive letter to another letter i.e. change from H:\ to U:\,
    i get prompted to set full control etc and apply.  I then set the drive back from U:\ to H:\, again i am prompted for setting full control which i accept.  
    NOW when i login i no longer receive a Z:\ drive and only get an H:\ drive.  YAY, thats what i want, however, i do not understand why this is the case.  At first i thought it might be something in the active directory logic when i login to an XP
    machine and then login to a windows 7 machine.  IF you bear in mind that although i get a new profile in Windows 7 i still retain the same home folder setting.  However, after logging on an XP machine logging off then logging
    on a Windows 7 machine i still didn't get the Z:\ drive back. 
    I have tried creating a new user that ONLY receives our Windows 7 Group Policies and still they receive both an H:\ and a Z:\ drive which rules out the Windows XP policies conflicting with the Windows 7 policies.
    Does anyone have any ideas why i would get a second drive mapped to Z:\ logging into Windows 7 on a Windows Server 2003 domain? 
    Can anyone explain in more detail exactly how the Active Directory functionality works when you specify a connect to Drive letter for a users home folder?
    My current workaround is simply to add a net use command to remove the Z:\ drive.  I do not want to use Mapped Network drives using the new policy settings in Windows 7 RSAT because we have already found issues with it. 
    <input id="3daf20bf-4f4d-4a05-86da-2c30c205d580_attachments" type="hidden" />

    We had the exact same issue happen to us. No issue on Windows XP but Windows 7 mapped two home drives (F and Z). F was mapped during the login script and Z was being mapped by some unknown reason.
    We use Netapp for our storage and home drives and use a feature called CIFS Home Drive Mapping. This essentially maps a user to a folder not available through normal CIFS methods causing AD to error when setting the home drive. To get around this we use
    dsquery and dsmod to modify this attribute in the user account. This is the command we used...
    dsquery user -name %UserNameX% | dsmod user -hmdrv F -hmdir \\filer\$username$
    Notice there is no ":" after the F
    We determined the root causewas the value for the
    homeDrive attributefor the user account was set to "F" instead of "F:"
    When we updated our users to reference "F:" instead of "F" in their user, this problem was resolved.
    Use LDP or some other method to verify that the homeDrive attribute is set to "F:" (or any other letter) or you will have this issue.

  • Firefox won't start as soon as the User Home is on XSan

    Hi,
    We are migrating our User Home Directories to XSan.
    As soon as we copy the User Home Directory from the old Servervolume to XSan, Firefox 2.0 won't start, showing an alert, that it's already running.
    Deleting the Firefox preferences in ~/Library/Preferences and ~/Library/Application Support doesn't help either. Firefox then asks me to create a new profile. When this is done and a want to start with the new profile, FF tells me, that the Profile is already used.
    Same thing with Camino and Firefox 1.5
    Is anyone else having this issue?
    Greetings from Bavaria,
    ubwm

    @Robert:
    Be assured we thought about all that. (And Apple Germany and some consultants did as well.)
    We are now rolling out using a XSan environment and user homes without mobile accounts. Mobile accounts is no solution if you need to have 300 users using 200 machines and switching machines like crazy We would have all the machines cluttered by synced Home folders in no time. We know of the drawbacks but it's the only solution that fits our needs.
    Our users are discouraged from keeping large amounts of own data on their Home, which is mostly for the Library and some personal files. We keep all our production data on specialized (and non-Apple) file servers, so searching is not as tremendous an issue. (We disabled spotlight and use EasyFind).
    Regards from Bavaria,
    ubwm

  • User home folders Upper and Lower case problem in FPN

    Hi Sdn,
    I am facing a wiered problem in FPN. I configured FPN between EP and BI portal.
    EP is using UME as LDAP
    BI portal is using UME as ABAP
    configured KM folders on to EP using Webdav scenario
    now when I try to save KM book marks, it is saving perfectly in EP
    the problem is saving bookmarks in the userfolder with Uppercase like USER
    the KM favorites iView with the path (/alias/userhome/<user.id>/favorites)is trying to look into the userfolder with lowercase like user and displaying nothing
    plese help me in solving this for KM iView to ignorie case
    Thanks!
    Regards
    Srinivas

    Hi Simon,
    I understand that this problem is because of UME as LDAP and ABAP .
    I tried to create a KM Navigational iView for favorites folder /alias/userhome/<user.id>/favorites.
    but here problem is I am not able to convert user.id to Ucase
    As per your suggestion, it is not possible to create one KM navigational iView to peep into multiple folders
    for this the solution might be in two ways. creating KM iView to ignore case and look into the user home folder
    if so, How to make the iView to ignore case
    second option is to configure BEx broadcaster to publish in USER.lower folder
    is so, How to achieve this
    being people started using FPN most frequently and moving BI to seperate Portal and use ABAP as ume.
    users will start encounter this problem most often. SAP has to come out with solution for this
    Srinivas

  • HT201363 Good evening ...  I have an account in appel and I have purchased a card  But I can not buy applications because the applications you want to push it under the answers to security questions and I forgot the answers to these questions  How can I c

    Good evening ...
    I have an account in appel and I have purchased a card
    But I can not buy applications because the applications you want to push it under the answers to security questions and I forgot the answers to these questions
    How can I change my answers to security questions??

    Hello, yazanalmasri0.
    If you need to reset your security questions and have a rescue email attached to your Apple ID, this article will help you with this issue.
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    If you are still unable to reset your security questions or do not have a rescue email associated with your account, you will need to reach out to our account security team. 
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Cheers,
    Jason H.

  • To extract the users permission on files and folders in sharepoint 2010 using client object model

    To extract the users permission on files and folders in sharepoint 2010 using client object model

    Hello,
    This is sample code to get item level permisison: (Just written in notepad so it is not tested)
    public void ItemLevelPermission()
    SecurableObject curObj = null;
    ListItem curItem = ctx.Web.Lists.GetByTitle("LibraryName").GetItemById(ItemId); -> Use Id of file or folder.
    IEnumerable roles = null;
    roles = ctx.LoadQuery(
    curObj.RoleAssignments.Include(
    roleAsg => roleAsg.Member,
    roleAsg => roleAsg.RoleDefinitionBindings.Include(
    roleDef => roleDef.Name, // for each role definition, include roleDef’s Name
    roleDef => roleDef.Description)));
    ctx.ExecuteQuery();
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • I have an ipad mini that won't power on. It was turned off to charge overnight. In the morning it was warm and now won't turn on no matter what I do. I've tried resetting using the power / home button combination and nothing works.

    I have an ipad mini that won't power on. It was turned off to charge overnight. In the morning it was warm and now won't turn on no matter what I do. I've tried resetting using the power / home button combination and nothing works.

    If you have owned the device, as in purchased from Apple, less than a year then there will be no charge to repair, or most likely, replace the device. If you have had the device more than a year you will be charged an out of warranty cost for replacement ($219 I think) and that is much cheaper than a new device. If you have Applecare+ then you have an additional year of coverage and the replacement will be $49 or $79 depending on when you got the Applecare.

  • I need a sample vi that can plot a transfer function given zeroes and poles (It should allow the user to input zeroes and poles). It should be done in the S domain.The user should be allowed to put poles and zeroes, with frequency

    I need a sample vi that can plot a transfer function given zeroes and poles (It should allow the user to input zeroes and poles). The user should be allowed to put poles and zeroes, with frequency. DONE IN S DOMAIN.

    I have created a VI (LabVIEW 6.1) that does what you want. Note that the poles and zeros have to be entered correctly that is in Rad/s and typically with negative real part. The VI offers you all options for lin/log frequency axis, magnitude in dB or not, phase in Radians or Degrees etc...
    The VI is written with "academic" in mind, so it is not optimized for performances but (hopefully) for clarity. I hope this will work for you.
    Attachments:
    S-Domain_Transfer_Function_from_Poles-Zeros.vi ‏167 KB

  • I need a sample vi that can plot a transfer function given zeroes and poles (It should allow the user to input zeroes and poles)

    I need a sample vi that can plot a transfer function given zeroes and poles (It should allow the user to input zeroes and poles). The user should be allowed to put poles and zeroes, with frequency.

    Check the answer to your other posting
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000052A90000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0

  • How do I trim video clips in Quicktime Player?  The "trim" function under the edit menu is gray and won't do anything.

    I am trying to edit video clips from about two yesrs worth of video for an iMovie.  I don't want to load all of the clips into a new event because it would be hours worth of video.  I don't even know if iMovie could handle it.  I have tried to use Quicktime Player to do this, but the "trim" function under the edit menu is gray and won't let me do anything.  What can I do?

    Thank you so much!
    It works!
    I used this code...
    videoDisplay.addEventListener(VideoEvent.COMPLETE, videoCompleteHandler);
    private function videoCompleteHandler(event:VideoEvent):void {
         hideVideo();
    private function hideVideo():void {
         this.visible = false;
         this.includeInLayout = false;
    I have a follow up question...
    What is the syntax to target the video player from a different component to add an event listener to a button in the Sharing Widget called Back to Video?
    Thanks!!
    DK

  • HT5576 When I go to the password and security, there is no Select "Start" under the words "two-step verification" and follow the instructions on the screen

    When I go to the password and security, there is no Select "Start" under the words "two-step verification" and follow the instructions on the screen

    Hey Podducbnov,
    Thanks for the question. It sounds like you are trying to setup Two-Step Verification. After logging into http://appleid.apple.com, click "Password & Security". At this time you will probably be prompted to answer your security questions, go ahead and do so. Afterwards, the top section has a "Get started…" link to setup Two-Step Verification:
    Apple ID: Frequently asked questions about two-step verification for Apple ID
    http://support.apple.com/kb/HT5570
    Thanks,
    Matt M.

  • IndexOf - difference between Win and Linux encoding

    Hello folks, wondering if someone could put me on the right track over this little problem with porting a java app to Linux...
    I have a nice little program, developed on (the latest) JDK under windows which reads a custom file format, locates the second occurance of the substring 'PNG', ignores everything before the character before this PNG (hence the -1 below) and saves the remainder, which is now a bog-standard PNG image. The first 'PNG substring always occurs within the first 50 bytes (hence the 50 below) and the second around the 2kB mark. Here's the line that finds the location of the second 'PNG' in the file loaded into strFileContent:
    location = strFileContent.indexOf( "PNG", 50 )-1;All is well compiled and run on windows, say file 'test1.xyz' produces a value for location of 2076 and saves a nice PNG called 'test1.png'.
    When I haul it over to Linux (Ubuntu 9.04) and lo, location comes out as 1964 for the same file, and of course the file is no-longer a PNG because there are an extra 112 bytes on the front end. Running the windows compile of the code or a fresh Linux compile makes no difference.
    I'm suspecting Win and Linux Java count, perhaps, line endings or some such differently, perhaps have to check an encoding. I'd appreciate any pointers on correcting this to work on both platforms (ultimately I'm trying to appease a Mac user, but don't have a Mac to play with at the moment).
    Cheers,
    K.
    Ken

    phaethon2008 wrote:
    I'm suspecting Win and Linux Java count, perhaps, line endings or some such differently, perhaps have to check an encoding. I'd appreciate any pointers on correcting this to work on both platforms (ultimately I'm trying to appease a Mac user, but don't have a Mac to play with at the moment).The immediate cause of your problem is probably that Windows uses a 8bit encoding as the default (probably some ISO-8859-{noformat}*{noformat} variant or the Windows-bastardization of it), while Ubuntu uses UTF-8, which has a varying number of bytes per character.
    The much more important underlying problem is that you're trying to treat binary data as if it were text. A PNG image is not text. Handling binary data in Strings (or char[]) is a sure way to invite desaster.
    You must convert your code to handle InputStream/OutputStream/byte[] instead of Reader/Writer/String/char[].

  • What are the differences between HP-UX and linux?

    Hi,
    Could u please send me the differences between HP-UX and LINUX.
    Thanks.

    This is a forum about Oracle SQL and PL/SQL.
    It is not about Unix or Linux.
    Your question is inappropriate here and demonstrates inability to do any research on your own.
    Sybrand Bakker
    Senior Oracle DBA

  • I have a 2nd gen Mac book air with Lion. The hard disk has filled up even though i keep my data , music etc on hard drive . I used disk inspector to find where problem was and it is 20GB in the hidden files under the user directory can i resolve this ?

    I have a 2nd Gen MAc book Air with Lion .  The 60GB hard disc has quickly filled up despite me keeping most of my data on a portable hard drive .  I used disk inspector to locate the problem but found that it was was in 20 GB of hidden files in my user directory .  Is this correct and is there anything i can do about it ? Using disk inspector you can not see individual hudden diretories or files. I did unhide them but there is a mass of diretories etc and so no way i could see if this is one or multiple files using the space. Library System and  Applications are at 4 3 and 3 GB respectvely.  The data I actually keep on there is 9GB    Thanks for any help

    I think the problem is Quick Time Player. I am using OS 10.6.8 by the way.
    I tried it out again.
    I had about 26 GB of space before I played an .avi video.
    After the movie started to play (it was slow to load), I got a warning message that my startup disk was full. I opened Disk Utility and it told me I had no space left (about 20 MB or something like that was left).
    I watched to the end of the movie.
    Then I quit Quicktime Player.
    And I shut down the computer.
    I turned on the computer and checked Disk Utility. I have about 26 GB of space.
    I think for some reason Quicktime Player uses up a lot of the disk space when it runs movies that are problematic. This movie I was watching did not open with vlc.
    I normally use vlc to watch movies.
    Probably it doesn't use up this much space when the movie is OK.
    I think there's a problem with this particular movie. It is about 50 MB so it's not that big a file. I watch .smi subtitles with it. The Quicktime Player automatically loads the subtitle file in this case because the subtitle file has the same name as the movie file.
    I watched about 10 movie files from the same series that I downloaded together and did not have any problem watching them. I watched them on vlc. But this latest movie had problems I think (as I repeat). It did not load on vlc even though I waited for a minute, and normally movies load instantly on vlc. 
    So I think that movie file caused problems. It made QT player use up a lot of hard disk space.
    I had better avoid watching that movie in the future. I don't want it to wreck my hard drive.
    So to sum up, everything is back to normal. I have the hard disk space that I should have. However, I am scared of damaging my hard drive due to shonky movie files that eat up all the space when they are played using QT player, and so I will not watch those files in the future, as I do not know why the files do that.

Maybe you are looking for

  • ODBC not working in WEB FORM(Dev6i)!!!

    Hi : I found ODBC are not working in Dev6i Web Forms , my reports all based on excel though ODBC . Can anyone help me to solve this problem ? Help me !!!! Thanks in advenace !!!

  • Problem: bpel deployment with xsd choice

    hi! i have the problem that after deploying my bpel process i dont see the choice defined in my xsd. with a very simple example the choice just dont show in the bpel console. (bpel processes => initiate => xml source just shows the xml without the ch

  • I'm having trouble downloading After Effects from the Download Assistant. Error 107?

    It says it cannot connect to Adobe.com but my connection is fine. I've restarted after closing the program several times and I've even tried different networks. Any help would be valuable to me. Thanks!

  • Hashed Internal tables

    Hi How to use Hashed Intarnal Tables. Can u plz write some sample code? Thanks

  • Hard drive for mac

    Hi, what drives should I look for. For a Macbook pro 2012 model a1278. Both hdd and ssd are prefered. Links to online dealers would be nice.