World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 01-09-2010, 07:08 PM   #1
fred
Guest
 
Posts: n/a
Default where is the cache folder?

where is the cache folder of WWJ? I couldn't find any cache file in the source folder. I mean the client side cache location for WWJ.
  Reply With Quote
Old 01-09-2010, 08:17 PM   #2
m_k
Bored Explorer
 
m_k's Avatar
 
Join Date: Nov 2004
Location: Warsaw, Poland
Posts: 1,808
m_k is an unknown quantity at this point
Default

It depends: in Vista it's C:\Users\All Users\WorldWindData\ (which is the same as C:\ProgramData\WorldWindData\), in XP it's somewhere inside Documents and Settings, don't know about Linux or MacOS.
__________________
Hot stuff: FAQ, forum search, DirectX, .NET, Video Card Compatibility list
m_k is offline   Reply With Quote
Old 01-10-2010, 06:26 AM   #3
fred
Guest
 
Posts: n/a
Default exact path for cache folder

Thank you very much m_k. Thanks to your response, I found that in win xp the cache folder is C:\Documents and Settings\All Users\Application Data\WorldWindData
  Reply With Quote
Old 01-10-2010, 05:24 PM   #4
Gopinath Avuku
Member
 
Join Date: Nov 2009
Posts: 42
Gopinath Avuku is on a distinguished road
Default

You can find the local cache of wwj in Windows XP in C:\Documents and Settings\All Users\Application Data\WorldWindData

before this....unhide the hidden folders.(bcos Application Data folder is hidden)
Gopinath Avuku is offline   Reply With Quote
Old 01-12-2010, 07:13 PM   #5
mac123
Junior (har har...) Member
 
Join Date: Nov 2009
Location: Europe, Germany/Austria
Posts: 12
mac123 is on a distinguished road
Default

You might want to set the cache location yourself, instead of using the default.
See there:
http://forum.worldwindcentral.com/sh...cache+location
mac123 is offline   Reply With Quote
Old 01-12-2010, 11:38 PM   #6
nick
Senior Member
 
Join Date: Jun 2008
Location: Adelaide, South Australia
Posts: 124
nick is on a distinguished road
Default

There is one other thing you should be aware of, the cache location depends on the user permissions. If the user has appropriate permissions, cache will be found in "C:\Documents and Settings\All Users\Application Data", otherwise it will be in the specific users Application Data. This will play a part in how much space WorldWindData takes up on the system.

If each users has individual copy of the cache then you are going to get lots of duplication. In this case you may wish to put the cache somewhere that all users can access.
__________________
nick is offline   Reply With Quote
Old 01-16-2010, 07:12 AM   #7
fred
Guest
 
Posts: n/a
Default Thanks

great responses. thank you very much, I will try to set the default location manually.
  Reply With Quote
Old 01-17-2010, 02:01 PM   #8
fred
Guest
 
Posts: n/a
Default changing default location

I tried to change default location of the cache folder based on instructions in this post: http://forum.worldwindcentral.com/sh...cache+location

as the result, I added this line <location wwDir="C:\WorldWindData"/> to the <readLocations> and <writeLocations> sections of the DataFileStore.xml file located in src/config folder. first, I added it to the <readLocations> section but it didn't work, so I added it to both sections and it did't work again. I have attached DataFileStore.xml file. Would you please tell me what is wrong?

Code:
<?xml version="1.0"?>
<dataFileStore>
    <readLocations>
        <location wwDir="C:\WorldWindData"/>
        <location property="gov.nasa.worldwind.platform.alluser.store" wwDir="WorldWindData"/>
        <location property="gov.nasa.worldwind.platform.user.store"    wwDir="WorldWindData"/>
        <location property="user.dir"  wwDir="WorldWindData"/>
        <location property="user.home" wwDir="WorldWindData"/>
        <location property="gov.nasa.worldwind.platform.alluser.store" wwDir="WorldWindInstalled" isInstall="true" isMarkWhenUsed="true"/>
        <location property="gov.nasa.worldwind.platform.user.store"    wwDir="WorldWindInstalled" isInstall="true" isMarkWhenUsed="true"/>
        <location property="user.dir"  wwDir="WorldWindInstalled" isInstall="true" isMarkWhenUsed="true"/>
        <location property="user.home" wwDir="WorldWindInstalled" isInstall="true" isMarkWhenUsed="true"/>
    </readLocations>
    <writeLocations>
        <location property="gov.nasa.worldwind.platform.alluser.store" wwDir="WorldWindData" create="true"/>
        <location property="gov.nasa.worldwind.platform.user.store"    wwDir="WorldWindData" create="true"/>
        <location property="java.io.tmpdir" wwDir="WorldWindData" create="true"/>
        <location wwDir="C:\WorldWindData"/>
    </writeLocations>
</dataFileStore>
  Reply With Quote
Old 01-19-2010, 04:48 PM   #9
mac123
Junior (har har...) Member
 
Join Date: Nov 2009
Location: Europe, Germany/Austria
Posts: 12
mac123 is on a distinguished road
Default

I think in your case it should read:

<location wwDir="C:\\WorldWindData" create="true"/>

I simply escaped the backslash (just to be sure).
On the other hand, hardwired path information is not so pretty (and platform dependant).

I use it in the way that the cache folder is always in the working directory of my Worldwind-application, like so:

Code:
<?xml version="1.0"?>
<dataFileStore>
    <readLocations>
        <location property="user.dir"  wwDir="WorldWindData"/>
    </readLocations>
    <writeLocations>
        <location property="user.dir"  wwDir="WorldWindData" create="true"/>
    </writeLocations>
</dataFileStore>
You may want to copy the cache data you already downloaded in the WorldWindData folder.
For example, if you have an Eclipse project, simply copy the WorldWindData folder you found (in C:\Documents and Settings\All Users\Application Data\WorldWindData) to the root of your project, and give it a try.

Last edited by mac123; 01-19-2010 at 04:52 PM.
mac123 is offline   Reply With Quote
Old 01-19-2010, 11:31 PM   #10
nlneilson
Super Moderator
 
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,615
nlneilson is on a distinguished road
Default

I have tried several different ways. I previously had it IN the working directory.
I changed this to a directory that is adjacent to rather than in. It is easier that way so the WWJ and my other .jar and .exe apps are separate from the cache.

I change the code for Linux Ubuntu to read/write the cache on "host"\... so there is not a separate cache for Win and Linux.

Also when in Eclipse changing code and doing a search the cache will not be included in the search. If the cache is in the working directory it will be included in the search, 6~8Gig takes time.

edit: On Ubuntu, and maybe all Linux distros, it should use forward slash rather than back slash. In Win I have my cache in C:\WWData so in Ubuntu its "/host/WWData"

<location wwDir="/host/WWData"/> //for the read and write.

This will use the cache in C:\WWData when run under Ubuntu rather than make a another cache.

Last edited by nlneilson; 02-21-2010 at 03:20 PM.
nlneilson is offline   Reply With Quote
Reply

Tags
cache


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SQUID configuration to cache WMS server responses garakl Server Discussion 1 08-08-2011 02:16 PM
UNINSTALL CACHE FOLDER dhx2@verizon.net Technical Support 6 03-12-2007 08:33 PM
1.2e to 1.3 Cache folder hermetica Developers' Corner 38 12-31-2006 04:12 AM
Problems with cache... what is the correct folder structure? koumooo Technical Support 1 05-18-2006 12:15 PM
Choose different folder for cache fnord123 Suggestion Box 3 09-28-2004 01:26 AM


All times are GMT +1. The time now is 09:29 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.