Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Roaming Profiles and Java

Posted on 2009-05-08
7
Medium Priority
?
1,069 Views
Last Modified: 2013-11-23
We just implemented Roaming Profiles for some laptops that we have.   Our primary software is a Java Based application that these laptop users use to access map data.  The issue I am having is that when the Java product launches it seems to be looking for the data in the location of the roaming profile on the server.   The server may or may not be available to the mobile user.  Does Java use data out of the application data folder?   If it does is there a way around this problem?
0
Comment
Question by:blackfox_01
  • 4
  • 3
7 Comments
 
LVL 1

Expert Comment

by:bleistift
ID: 24338922
If the Java application you are using caches in the Java temporary internet file location, the default is the application data folder.  On my version of Java, you can change the temporary file location by going to the Control Panel -> Java -> Temporary Internet Files -> Settings -> Location -> Change, and select a location outside of the application data folder.
0
 
LVL 1

Author Comment

by:blackfox_01
ID: 24339101
So if the file caches it to the temporary internet files location then when the roaming profiles copy their data up then they would lose that information and would not be able to start up.  Correct?
0
 
LVL 1

Expert Comment

by:bleistift
ID: 24339365
That could be the case, but it depends on the Java app.  Is the app compiled and run locally or is it hosted off of a server?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 1

Author Comment

by:blackfox_01
ID: 24339722
Well here is the issue.  The Java App runs locally but it does a download from the server to check for any new updates.  My issue is that part of the app is supposed to run when it is offline.  But when the app launches it appears to be looking at the server profile directory and that causes the app to crash.  
0
 
LVL 1

Accepted Solution

by:
bleistift earned 1500 total points
ID: 24339821
It sounds like the server update check is hard coded into the app.  If that's the case, my earlier suggestion would not work.

Is this developed in-house?  Can you inquire with the developers to see why the app is checking the roaming profile?

If it is hard coded into the application, you can either 1) ask the developers to change this behavior or 2) use local caching for your roaming profiles so that an offline version of the profile is stored locally
0
 
LVL 1

Author Comment

by:blackfox_01
ID: 24339869
Thats what I thought.  I have them looking at it now.   I think they have the central database location hard coded now and that is a change from what they have done in the past.    I believe its the hard coding of the location that is the problem.   I think they have finally accepted that.  I dont think the app is checking the roaming profile as much as it is looking at the location of the temp intrnt files for the code it has downloaded and when it does that it ends up looking at the remote server for the files.  So I think I have a 2 fold problem.   1 the developer has the database server hardcoded in and 2. the roaming profiles is forcing the java application to look at the server for the downloaded files.
0
 
LVL 1

Author Comment

by:blackfox_01
ID: 24452435
Well I found a rather time intensive fix.  Apparently when the roaming profiles are set up Windows changes the locations or program files,  application data,  favorites and a couple of other folders.  When you turn off Roaming profiles on the machine those changes do not get reverted.  I had to go in and change all of these locations back to their original locations wherever the problem showed up in the registry.   I also had to delete some keys that were pointing these folders to the remote server location as well.  All in all there were about 20 different places to change the references.   Once I changed these the problems went away.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a fairly complicated script that will install the required prerequisites to install SCCM 2012 R2 on a server.  It was designed under the functional model in order to compartmentalize each step required, reducing the overall complexity.  The …
Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This video teaches viewers about errors in exception handling.
Suggested Courses

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question