Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / March 2006

Tip: Looking for answers? Try searching our database.

javaws clearing cache via commandline

Thread view: 
Matt Brown - identify - 08 Mar 2006 19:55 GMT
Hello,

According to the Sun javaws Command Line documentation*, the following
line should clear the user cache and exit when done, silently, while
supressing the splash screen and exit when done:

javaws -Xclearcache -silent -Xnosplash

This line appears to clear the cache, but does not supress the splash
screen, nor does it exit when finished, nor does it run silently.

*http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/javaws.html#options
Matt Brown - identify - 08 Mar 2006 22:16 GMT
I hit Post too soon. so....

Basically, the above doesn't function as proper.  Is there another way
(using javaws) to clear the cache?  I'm wondering because it would be
terrible to have to enumerate sub-directories and then delete the
jsi.cache dir if there's already functionality in javaws.

Any input would be appreciated.

Thanks!

Matt
Roedy Green - 08 Mar 2006 23:15 GMT
On 8 Mar 2006 14:16:29 -0800, "Matt Brown - identify"
<MatthewBrown@gmail.com> wrote, quoted or indirectly quoted someone
who said :

>Basically, the above doesn't function as proper.  Is there another way
>(using javaws) to clear the cache?  I'm wondering because it would be
>terrible to have to enumerate sub-directories and then delete the
>jsi.cache dir if there's already functionality in javaws.

you can type Javaws.exe -viewer and try deleting via the gui.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Matt Brown - identify - 09 Mar 2006 02:01 GMT
I'm looking to script this for a scheduled task, so my goal is clear
the cache from the commandline.
IchBin - 09 Mar 2006 02:08 GMT
> I'm looking to script this for a scheduled task, so my goal is clear
> the cache from the commandline.

Sorry I sent this to your email address by mistake...

Hate to say this but it worked as designed for me. I am running
JDK.5.0_06. I did not try to use -Xclearcache because it said I did not
have the privileges to do so. I don't feel like looking that up.

javaws -silent -Xnosplash test.jnlp

Signature

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)

Matt Brown - identify - 09 Mar 2006 02:19 GMT
ah hah... i guess -Xclearcache does "work," but gives me the following
error:

"An error occurred while launching/running the application.
Category: System Configuration
The current user does not have write access to the cache."

The exception is as follows:
"JNLPException[category: System Configuration : Exception: null :
LaunchDesc: null ] at com.sun.javaws.Main.main(Unknown Source)"

I am logged on as a local administrator while trying to run the
command; and I definately have write the ability to write to the cache
directory (is this what they mean by cache?).  This seems strange.

Any ideas?

Thanks,

Matt


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.