1.5 How to globally set the System Cache location

FROM ANOTHER USER ON ANOTHER BOARD:
This one did not get answered completely.
************************* Question:
Hello,
I want to deploy JWS on a client PC with Microsoft XP OS. This client have multiple users. JWS put a file deployment.properties in the directory "documents and setting" for the current user.
How can I create a uniquely file deployment.properties for all users of this client (new and existing profiles) ?
Create a directory "documents and setting/all users/application data/sun/java/deployment/" with the file deployment.properties don't work.
Create a directory "documents and setting/default user/application data/sun/java/deployment/" with the file deployment.properties is working but is not good for the existing users. This is good uniquely for new users.
is there a solution ?
King regards,
funchung
************************* ANSWER:
For windows, the system config file is at:
{Windows Directory}\Sun\Java\Deployment\
The value of the {Windows Directory} is determined by using the Win32 API GetWindowsDirectory.
So for example, on XP, the system config file is:
c:\WINDOWS\Sun\Java\Deployment\deployment.properties
The settings in this system config file will be used by all users on the system.
***************************** HIS REPLY
I've tried this and it doesn't seem to work.
I've also tried createing a deployment.config file as per the http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html article and this doesn't work for me.
Has anyone done this successfully??
******************************** MY REPLY:
This is true.
I can get the system install to work if I add the parameter:
deployment.system.cachedir=C\:\\testcache
to the deployment.properties file found under:
C:\Documents and Settings\username\Application Data\Sun\Java\Deployment
but it will NOT work by adding it to the:
C:\WINDOWS\Sun\Java\Deployment
directory. It just creates a new default one in the user's folder.
What am I doing wrong?
If there is not a way to globally set the System Cache location, then this isn't much better than the user cache for being able to "install" the software once on the PC and let any user that signs in access that application.
We had high hopes for this, since this functionality was taken away from us once the java cache started being stored in the user's folders.
More details:
I just tried setting the mandatory=true setting and it tells me that it is not allowed to start because it can't find the
deployment.properties in the same folder (full path is displayed) but I know it is there, because it is the same folder. I even double checked the spelling.
Maybe there is a bug in the way it finds that properties file, or maybe I need to include something in that file that I didn't find in documentation?
All it has in it is the one line:
deployment.system.cachedir=C\:\\testcache
Can anybody help shed light on this?
It seems to be a bug that it can't find the deployment.properties file in the 'system' folder.
-Chris

I now found more on another thread:
http://forum.java.sun.com/thread.jspa?messageID=3500778&#3500778
You can close this one.
Sorry.

Similar Messages

  • How do I set the system time?

    Hello
    The system time can be read using System.currentTimeMillis(), but, how can I set it?
    Thanks

    several approaches:
    you could use the OS function to set and call it via Runtime.exec().
    For WIndows e.g.: "time 08:15:00" to set the system time.
    another solution: http://www.rgagnon.com/javadetails/java-0285.html

  • How do you set the system MESSAGE_ID to an XML field value?

    Hi experts,
    I need to set the value of the system MESSAGE_ID to a field that an external company will send in the XML file. What I could gather thus far is that it should look something like this:
    //externalRef and container are passed as parameters:
    GlobalContainer globalContainer;
    String headerField;
    java.util.Map map;
    globalContainer = container.getGlobalContainer();
    globalContainer.setParameter("MessageId", externalRef);
    map = globalContainer.getParameters();
    headerField = (String) map.get(StreamTransformationConstants.MESSAGE_ID);
    return headerField;
    The problem is the setParameter() function - not sure how it is supposed to work. The GETting of the MessageId works though but I need to SET it while mapping the file. Any ideas?

    use the sample code as provided in the link - http://help.sap.com/saphelp_nw04/helpdata/EN/78/b4ea10263c404599ec6edabf59aa6c/frameset.htm
    in your case it will be MESSAGE_ID - http://help.sap.com/saphelp_nw04/helpdata/EN/b3/9a2aeb24dc4ab6b1855c99157529e4/frameset.htm

  • How do I set the system to ask me for country in every transaction?

    Hi gurus,
    How do I NOT let the system to take one country and use it in next transaction. e.g . Persnl Mgmt > Prsnl Admn > customizing use rinterfaces > Change screen header > Header modifier . Here it asks for country. Now, if I put any country here the next time it does not ask me for the country. I can only achieve this by logging out and this is a big hassle for me. How do I fix this? I want the system to ask me for the country every time I use spro command. Please advise.
    Thanks
    Jess.

    Hi Jessica,
    Check under Menu Item Settings of that transaction. You should have an Item like "Change Country".
    Regards,
    Jovito.

  • Photo elements wants to open last used dir location. When it doesn't exist or cannot access, it fails to open.  How do you set the default file location?

    Upset!!!
    Photo elements wants to open at the last used folder location. When it does not exist or unable to open that location. It FAILS to OPEN.
    Does not seem to be a way to set a default location or to change the location.
    VERY ANNOYING.
    How do you tell photo elements to always go to a set location rather than the last used location?
    Thank you

    Hi,
    I did a test as you suggested - open an image on a removable drive, close the editor and took the removable offline. When I next went to the editor, it opened OK.
    From the screen shot in message #5 above, I think that the fault is with SolidWorks. I am not familiar with that product but it seems to be a form of asset management and it can't open its database - is that on the removable?
    Normally, the editor does not open any files when it loads except for it program files and any addins. Could SolidWorks be an addin?
    See if this works to reset the preferences.
    Create a desktop shortcut for this file
    "C:\Program Files (x86)\Adobe\Photoshop Elements 10\PhotoshopElementsEditor.exe"
    Hold down the Ctrl, Shift & Alt keys when you double click on the shortcut. Keep the keys held down and eventually a message box will pop up asking if you want to reset the preferences - you do.
    Brian

  • How can I set the default window location in calendar to my second monitor?

    After installing Mavericks, Calendar always opens its windowed centered in my main monitor.  I move it to where I want it (upper left, second monitor) but when I quit the program, the location reverts to the original location.  Is there a .plist I need to edit?
    -Jeff

    The "quit calendar" fix does not endure after the next logout or restart.
    In System Preferences, in the Mission Control Pane, unchecking "Displays have separate spaces" causes the windowing behavior to revert to pre-Mavericks behavior.  Applications open in the previously used window.  Applications with windows on multiple monitors re-open with correctly located windows.  However, all the behavior reverts, so you can't run multiple full screen applications on different monitors, nor is there a tool bar at the top of secondary monitors.
    -Jeff

  • How do I set the "Save as" location?

    When I download a file, I want to be able to Save as instead of just Save so that I will know where the file is and so I can tell the browser where to put the files. I don't want to have to go to Downloads, find the file, and then extract it in order to save it where I want it. Besides, not all downloaded files have to be extracted, so I still have to find the file and either rename it with the full path I want, or cut and paste it. Both are a waste of precious time in my opinion.

    See:
    *Firefox/Tools > Options > General: Download
    *https://support.mozilla.org/kb/Downloads+window

  • How can I move the BridgeCC cache location?

    Win 7 64, Bridge CC. I wish to move the cache to another, emptier drive. Edit/Preferences sees only the location under "user" and offers no option under "Browse" other than "New Folder", which creates a new folder in the same location.  Preferences does not see any of the rest of the computer's file system.

    "Excessive Use" meaning too many files in the Desktop folder?  Any idea how many is too many? 
    Thanks for the pointer, though. 

  • Everytime my AppleTV2 enters into sleep modus it requests again the WIFI network password. This is new, where can I set the system to remember the password?

    Everytime my Apple TV 2 enters into sleeping mode it requires my WIFI network password again upon reconnection. This is new, how can I set the system to remember the password?

    Open Mail preferences, click on the Accounts icon in the toolbar then select your mail account, click on the Mailbox Behaviours tab on the right. Set the dropdown menu at the bottom for the Never option.
    However, you cannot change the default options set for a newly created account.

  • Setting the system property in java application

    Hi,
    I want to make a connection to https://URL through my java application class
    which will be deployed in the weblogic server. Could any one help by
    telling how could I set the system properties in my java application. If I
    pass the value in the java class do I have to change any value in the
    weblogic.properties file.
    Thanks in advance and looking forward to hear your valuable suggestion.
    Sirisha

    System.getProperty(..)
    System.setProperty(..) is this what you are asking for?
    This gets and sets the system (your machine) environment properties
    Filip
    In article <396d0a93$[email protected]>, [email protected] says...
    >
    Hi,
    I want to make a connection to https://URL through my java application class
    which will be deployed in the weblogic server. Could any one help by
    telling how could I set the system properties in my java application. If I
    pass the value in the java class do I have to change any value in the
    weblogic.properties file.
    Thanks in advance and looking forward to hear your valuable suggestion.
    Sirisha
    Filip Hanik
    Software Architect
    XMarkstheSpot.com
    [email protected]

  • Setting the shared templates location by Deploying Office 365 Midsized Business "using a network share" from a on-premise location

    I found the question "Deploy Office 365 pro plus using a network share or from a on-premise locaiton" the most useful of the resources
    on MS yet - but I am having difficulties getting the files to download for a local deployment.
    The root of the issue, that I cannot find anywhere, is how do I set the shared templates location for users in the organization.  First I thought a GPO, but I cannot find that setting in the GPO in MS.
    Then I thought modifying the REG- but it is in a binary key which could include other information I may not want modified(Or does it matter?)
    Then I looked for ways to download the deployment but launching from an elevated prompt as IT (Domain level) returns a useless error to paraphrase- 'sorry MSOffice didn't install- do you have enough disk space'.
    I have downloaded the GPO objects, but not installed them, likely I will need those later though.
    Just want to path all the users to a central repository of office/excel/access/outlook templates in addition to their local templates. Concise help in steps or sites that have solved the issue are Greatly appreciated : )

    Hi,
    you can use the GPO ADMX templates to configure the "Workgroup templates path".
    This actually configures a registry setting named: "sharedtemplates".
    The registry value/type/data is:
    HKEY_CURRENT_USER\Software\Policies\Microsoft\office\15.0\common\general
    Name: sharedtemplates
    Type: REG_EXPAND_SZ (Expandable String Value)
    Data: <UNC path to folder>
    From the GPO reference workbook/sheet, for Office:
    http://social.technet.microsoft.com/wiki/contents/articles/4976.selected-content-relating-to-group-policy-administrative-templates-adm-and-admx.aspx
    Filename: office15.admx 
    Scope: User 
    Path: Microsoft Office 2013\Shared paths 
    Policy Setting Name: Workgroup templates path 
    Supported on: At least Windows Server 2008 R2 or Windows 7 
    Category: Shared paths 
    Explain Text: Specifies the location of workgroup templates. 
    Registry Key: HKCU\software\policies\microsoft\office\15.0\common\general!sharedtemplates
    Note: it is supported to populate this setting, with a UNC path, but not with a web path.
    e.g.: \\server01\shared\templates <this is valid>
    e.g.: http://server01/shared/templates <this is not valid>
    This constraint (for web URIs) can be difficult to work around. If you are using SharePoint, and think WebDAV might work, it doesn't seem to work for us :(
    Of course, if you have SharePoint, there are much better ways to handle document templates, but, our users are familiar with this File -> New -> from template type of method...
    It can also be set manually by a user:
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • How can I set the number of batch process for DTP globally?

    Hi guys,
    How can I set the number of batch process for DTP in system globally?
    For eg. set the number to 1
    Any hint is appriciated!
    Regards,
    Liying

    Hi,
    In DTP screen also you can view batch settings. Check the Settings menu, you will find Batch.
    Reg
    Pra

  • How to set the system date and time in LabVIEW 6i?

    Hi,
    How can I set the time of the computer from Labview 6i? Is there any function to do this?
    Thanks.

    Arnau wrote in message news:<[email protected]>...
    > Hi,
    >
    > How can I set the time of the computer from Labview 6i? Is there any
    > function to do this?
    >
    > Thanks.
    Not natively that I know of. You could use a LabVIEW DLL call to link
    to a Win32 API call which sets the date and time. You would need to
    have privileges to do it.
    Doug D.
    [email protected]

  • How to set the system time in the program

    Hi All,
    How do we update the system time inside java programme.

    AFAIK there is no easy (pure java) way: either you exec something (depending on your paltform) or use native code. Appropriate privileges will be necessary.

  • How to set the system clock in win2000? in linux? (RH)

    hi There,
    I need to set the system time on a pure java application.
    what is the proper way to do so? (I can't find any system property which corresponds to the system clock).
    if it's platform dependent , then I need to do so on win2000 and on linux RH.
    thanks

    I don't know about Windows but on RedHat, I would use the date command. Check the man pages for date and look at the -s or --set options.  Do a Runtime.exec to execute that.
    Of course, doing the in Java is not the best option. If you are trying to synchronized clocks on Windows and Linux systems, I would use some freely available Network Time Protocol programs. RedHat has a free NTP daemon available as an RPM in the standard distribution. For Windows, theres a free program called "Net Time" that runs as a service. Both can act as clients and servers.

Maybe you are looking for

  • Contacts created on the iPhone do not get synced to Outlook Contacts

    For some reason, contacts created on the iPhone do not get transferred over to Outlook Contacts. I sync the iPhone to my work computer for Calendar and Contacts. I sync to my home iMac for tunes, video, and photos. So far this is the only problem I'v

  • How to make shiny effects on cloth in illustrator?

    Hi there, # The exact version of Illustrator you are running. Illustrator cs3 # Your Operating System details. Windows XP # Amount of installed RAM. 2 GB ram # Amount of free disk space. ~360 GB # Make/Model of Video Card. NVidia Ge Force 7600 GS I m

  • Filter function problem in Tree

    Hi All, In the below code, I am trying to put filter function on parent. Now if I type "Ratings" and then again clear the search. the Bottom node gets lost. Please let me know ho can I retin the bottom node. Please note that bottom node also contains

  • Help in the code

    hello experts, I am uploading the data. For one field I am getting the value like 1341. So i have to equate this values to the first 4 charecters of LFA1-BAHNS I have to get the LFA1-LIFNR where the value 1341 matches to the first 4 chars of  LFA1-BA

  • 10.4.6 intel imac NEW/all updates sytems pref quits

    new intel dual, all updates, user transferred from imac G4 PPC via firewire using apple software upon start ie nothing i added. can update from apple menu but system pref quits. want to adjust security settings it quits. System Version: Mac OS X 10.4