wood burning stoves 2.0*
The moose likes JNLP and Web Start and the fly likes Change cache folder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Change cache folder" Watch "Change cache folder" New topic
Author

Change cache folder

Phil Couas
Greenhorn

Joined: May 20, 2013
Posts: 9
Hi,

Could i change folder of JavaWebStart Application on my PC ?
I like my signed jar is installed on c:\my application ?
Currently my Apps is installed on "C:\Documents and Settings\USER\Application Data\Sun\Java\Deployment\cache\6.0\49\35cdc871-4b852dfe"


Regards
Phil
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3606
    
  60

Welcome to the Ranch, Phil!

As far as I know, this path cannot be set in the JNLP file. It would be quite problematic, since you generally do not know anything about computers that your application will be run on. On some computers, user running your app might not be able to create the folder you want; and if it was run on Linux, for example, well - there is no C: drive to start with.

(The files are downloaded into a cache, whose location is managed by JRE. In Windows, there is the Java Control Panel, where this location can be set. I don't know whether/how can it be changed on other environments.)
Phil Couas
Greenhorn

Joined: May 20, 2013
Posts: 9
Hi,

Keep cool !
If my final customer use an software like 'Ccleaner' that clear cache directory, my application don't start and my customer configuration disepear.
So perhaps there is an alternative to deploy standalone Java application on destop PC ?
Currently java program is converted to exe with embeded jre and customer coming on website and download it, when exe is running, my java program and jre are installed. I want make an automatic jar deployment for new jar version.
All final Customer are currently on windows. I don't know pc configuration of more 10000 PC.

Regards
Phil
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3606
    
  60

Well, that's unfortunate. Your customer processes are not exactly friendly to Web Start.

It is always possible to use offline deployment for your application. I'm, for example, using MakeMSI, which is an excellent free tool for preparing MSI packages for the Windows Installer. This generally lets you copy your files to wherever you (or your client) wants. We're also using Launch4j, which allows us to create a Windows EXE (and associate it with an extension using the MSI package) and ship a JRE together with the application (so that the end user doesn't have to install Java on his own).

I still think that Web Start makes deployment and maintenance easier. My advice would be to try to negotiate with the customer to stop harming your application.
Phil Couas
Greenhorn

Joined: May 20, 2013
Posts: 9
My current problem is evolution of my java program, so i search an automatic upgrade, and i am afraid by customer operation, like change jre or clear cache.
It's important that customer made no other installation
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3606
    
  60

Well, Web Start solves exactly that problem easily, so it is very unfortunate you cannot use that.

There might be some java libraries out there that would help you distribute updates to your application automatically, similarly to how eg. NetBeans updates itself (it uses the Rich Client Platform, if I'm not mistaken). RCP might be too broad and heavy for your needs, so you might look around for libraries that would only provide the updates. The general process would still include your client installing the app once on each PC (they might download the install package from your website), but updates would then be automated. I'm afraid it might still mean a lot of work, though.
Phil Couas
Greenhorn

Joined: May 20, 2013
Posts: 9
Hi,

I search alternatives to JWS, it seems there is an google project named getdown.
I don't know if it could resolve my problem

Regards
Phil
Phil Couas
Greenhorn

Joined: May 20, 2013
Posts: 9
Hi,

Do you have tested getdown project http://code.google.com/p/getdown/ ?

Regards
Phil
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Change cache folder
 
Similar Threads
IOException while loading persisted sessions: java.io.EOFException
weblogic
controlling jpegs via java
the future of Java?
changing enum content...