Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Roaming Profiles and Java

Posted on 2009-05-08
7
Medium Priority
?
1,066 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Experts-Exchange users below are the steps you can follow to upgrade your Lync server to latest CU's or cumulative updates. Note: Perform it during non-production hours.   Step 1: Backup your lync and SQL server database. Follow below article: h…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

661 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