Skip to main content

Problem with "enterprise" (system) deployment

7 replies [Last post]
the_vince
Offline
Joined: 2006-08-30

Greetings,

We are setting-up an "enterprise configuration" of JWS where we want JWS applications installed under the system folder (e.g. "\Sun\Java\Deployment") rather the user "Documents and Settings" folder. The install script will run on thousands of desktops the same day. Since we do want the JAR files downloaded to all these desktops at the same time, the script does not run "javaws -import" at the end - it simply copies the files deployment.properties and deployment.config under the sysem folder with the following properties set:

deployment.system.security.trusted.certs = C\:\\WINDOWS\\Sun\\Java\\Deployment\\keystore.jks
deployment.system.cachedir = C\:\\WINDOWS\\Sun\\Java\\Deployment\\cache\\
deployment.system.config = file:\\C:\\WINDOWS\\Sun\\Java\\Deployment\\deployment.properties
deployment.system.config.mandatory = true

The install script also copies a shortcut with the target "jawaws -system...."

This setup works fine and the shortcut does cause the application to be downloaded at the proper system location.

However, if the user starts the app from IE (e.g. http://xx.xx.jnlp), it ignores the system configuration and downloads the app to the local user folder.

Is there anyway to force the download to occur in the system folder ? What I find pretty odd is that even lanuched from IE, JWS does read the deployment.properties and deployment.config files from the system folder. I've put a typo and it there and JWS complained right away.

Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
squintr
Offline
Joined: 2006-09-23

I'm having a similar issue.

We are using roaming profiles at our office and I don't want the Java cache to go to the default "application data" folder. I want the cache to go to c:\windows\sun\java\cache
for all users on the system. I have created the appropriate folder & permissions but haven't been successful with getting it to be used.

I created the files: deployment.config and deployment.properties in c:\windows\sun\java\deployment

deployment.config consists of:
deployment.system.cachedir = C\:\\WINDOWS\\Sun\\Java\\Cache\\
deployment.system.config = file:\\C:\\WINDOWS\\Sun\\Java\\Deployment\\deployment.properties
deployment.system.config.mandatory = true

deployment.properties consists of:
javaplugin.cache.size=10m
javaplugin.cache.directory=C\:\\WINDOWS\\Sun\\Java\\Cache
javaplugin.console=hide
deployment.system.cachedir = C\:\\WINDOWS\\Sun\\Java\\Cache\\
deployment.user.cachedir = C\:\\WINDOWS\\Sun\\Java\\Cache\\

What am I missing?

Thanks
Sandy

andyherrick
Offline
Joined: 2005-04-17

1.) the only two recognized properties in deployment.config are:
deployment.system.config , and
deployment.system.config.mandatory = true
so the entry for deployment.system.cachedir in that file does nothing.

2.) in a properties file, both colons(:) and backslashes (\) need to be escaped, so the entry needs to be:
file\:\\C\:\\WINDOWS\\Sun\\Java\\Deployment\\deployment.properties

/Andy

vjpiyush
Offline
Joined: 2008-04-23

Hi ,

I am using jre 1.4.2 & javaws,
As per our requirement, we need to provide the different cache while installation to the different directories.

Can anybody has information about - "How to provide the cache directory location - either through config file or API"

the_vince
Offline
Joined: 2006-08-30

Thanks Andy,

That's somewhat of a hack but that would work. Thanks ! If you have any other idea, let me know !

andyherrick
Offline
Joined: 2005-04-17

You are using the enterprise config set up to set the system cache to a location on each machine.
Is this because you want multiple users of the same machine to share this cache ?
If it's not, and it's just because you want the cache there, then why not just put the users cache there:
deployment.user.cachedir = C\:\\WINDOWS\\Sun\\Java\\Deployment\\cache\\
and not try to launch the app in system mode.

If you launch from a browser, the normal mime type setting (set up by java install) will launch javaws in normal (not system) mode.
To change this (if you really wanted to always run in system mode) you would have to change the browser specific mime type setting for application/x-java-jnlp.

/Andy

u29236
Offline
Joined: 2009-05-22

Andy,

I have a application that uses jdk and so I configured it so that it runs correctly on user mode. I grabbed the deployment,properties from the user profile and created a system mode and it seemed to work but when the app is loaded it seems to grab the user mode profile and not the system profile. I know all the syntax is correct because I see in java control panel that in sytem tab JDK is used but in user mode it has JRE. I want to use the system mode but I dont know y it keeps grabbing the user specfic profile. I found the browser specific mime type setting for application/x-java-jnlp in registry but I have no idea how to associate it to use the system mode. Can you please explain what I need to do in order for it to run in system mode exclusively so that it uses: deployment.javaws.jre.0.path=C\:\\Program Files\\Java\\jdk1.6.0_05\\bin\\javaw.exe in system mode

the_vince
Offline
Joined: 2006-08-30

Woops, I made a typo - the line "Since we do want the JAR files downloaded to all these desktops at the same time" should instead read "Since we do NOT want the JAR files downloaded to all these desktops at the same time"