![]() |
|
|||||||
| Development Help Help for building applications or diagnosing problems with WWJ |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
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.
|
|
|
|
#2 |
|
Bored Explorer
Join Date: Nov 2004
Location: Warsaw, Poland
Posts: 1,808
![]() |
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.
|
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
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
|
|
|
|
#4 |
|
Member
Join Date: Nov 2009
Posts: 42
![]() |
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) |
|
|
|
|
|
#5 |
|
Junior (har har...) Member
Join Date: Nov 2009
Location: Europe, Germany/Austria
Posts: 12
![]() |
You might want to set the cache location yourself, instead of using the default.
See there: http://forum.worldwindcentral.com/sh...cache+location |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Jun 2008
Location: Adelaide, South Australia
Posts: 124
![]() |
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. |
|
|
|
|
|
#7 |
|
Guest
Posts: n/a
|
great responses. thank you very much, I will try to set the default location manually.
|
|
|
|
#8 |
|
Guest
Posts: n/a
|
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>
|
|
|
|
#9 |
|
Junior (har har...) Member
Join Date: Nov 2009
Location: Europe, Germany/Austria
Posts: 12
![]() |
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>
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. |
|
|
|
|
|
#10 |
|
Super Moderator
Join Date: Nov 2006
Location: Mojave & Oxnard California
Posts: 2,615
![]() |
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. |
|
|
|
![]() |
| Tags |
| cache |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |