Home » Developer & Programmer » Forms » Temporary Internet Files Settings in Sun JRE 1.5.0_05 (Forms 10.1.2.0.2)
icon9.gif  Temporary Internet Files Settings in Sun JRE 1.5.0_05 [message #342126] Thu, 21 August 2008 07:48 Go to next message
shahmayur
Messages: 22
Registered: November 2007
Location: London, UK
Junior Member
Hiya

We are migrating our Oracle Forms 6i application to web based Oracle Forms 10g. The application runs using Sun JRE 1.5.0_05 in Internet Explorer on Windows XP.

Oracle Forms 10g uses Java classes for its own purpose which Oracle has supplied them in JAR files (e.g. frmall.jar)

Oracle recommends that we should cache these JAR files onto the client machine in order to load the application faster.

We have followed that recommendation. The application is working well and the JAR files are also getting cached onto the client machine.

So far so good. But the real problem begins now.

On Windows XP, the Sun JRE caches these JAR files under the users' profiles settings. Precisely the path reads
as below:
Documents and Settings\<userid>\Application data\Sun\Java\Deployment\Cache\javaapi\v1.0\jar

Storing these files has got two disadvantages:

1) Traffic, Bandwidth and Time : Since our users have got the roaming profile, all the files under their profile moves with

their Login into Windows and log-off from Windows. Not only does this network traffic incur round trip between a PC and

server, it also consumes the precious bandwidth and considerable amount of time when they login into the Windows.

2) Storage Space : As per our oraganisation's policy, each user's profile is allocated 8MB of space. The total size of all
the JAR files is about 4MB which leaves them with almost no space in their profile and it frequently pops-up an annoying

message "You have exceeded your profile storage space...".

The solution to above two problems is that we store these JAR files into some other folder for e.g. C:\temp.

Changing the location of Temporary files can be done in two ways:
Solution 1) Either by going to Java Control Panel -> General tab -> Temporary Internet Files -> Settings.
OR
Solution 2) By going into deployment.properties file which resides under the Documents and Settings\<userid>\Application

Data\Sun\Java\Deployment folder.

However, Solution 1 is not feasible considering we have got more than 1000 users. Hence it is ruled out.

Solution 2 is also not feasible since deployment.properties file gets created ONLY after the Java applet is loaded first time
when the user hits URL of our application.

In view of the limitations of above two solutions, we are looking for the Registry settings of Sun JRE in which we can

specify the location of temporary files for Java.

While Googling for the Registry key, I found that in the previous version of Sun JRE i.e. 1.4.2, there was a registry key
called USER_JPI_PROFILE.

I tried creating this environment variable in the Registry but it didn't work. I suppose that Sun has de-supported this
environment variable with the version 1.5.

Our application has not gone into production yet. But the above two issues pose a serious threat to the implementation of our application.

So here comes my question to you. Is there any Registry settings you are aware of that serves my purpose ?

Also, other than the Registry Settings, if by any other means my original problem (storing the temp. files in other folder)
could be resolved, please can you let me know ?

Any of your ideas/suggestions/help will be much appreciated.

Thank you for your time for reading such a long thread !!

Cheers

Mayur
Re: Temporary Internet Files Settings in Sun JRE 1.5.0_05 [message #342270 is a reply to message #342126] Thu, 21 August 2008 18:34 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
I suggest you ask this question in a Java or Sun forum.

David
Previous Topic: Forms Window Problem
Next Topic: remove the message box
Goto Forum:
  


Current Time: Mon Feb 03 09:50:27 CST 2025