Solved

Roaming Profiles and Java

Posted on 2009-05-08
7
1,044 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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
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 500 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

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…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now