windows 7 - Java user.home is being set to %userprofile% and not being resolved -


Our company has recently upgraded from Windows XP to Windows 7 Enterprise. The JDK installation is no longer setting user.home on the full path of the user directory, rather setting user.home to % userprofile% instead. It is causing a lot of issues with Eclipse, Maven etc. Now I have to set deuser ham for each app in JVM. Has anyone else experienced this? Is there a way to fix this? Is it related to the installation of Windows 7 Enterprise? I have tried 1.5 JDK and 1.6 JDK.

Here is a list of properties Note user.home:

  - Listing Properties - java.runtime.name = Java (TM) SE Runtime Environment sun.boot.library. Path = c: \ program files java \ jre6 \ bin java.vm.version = 16.0-b13 java.vm.vendor = Sun Microsystems Inc. Java.vendor.url = http: //java.sun.com/ path.separator =; Java.vm.name = Java Hotspot (TM) client VM file.encoding.pkg = sun.io user.country = US sun.java.launcher = SUN_STANDARD sun.os.patch.level = java.vm.specification.name = Java virtual machine specification user.dir = C: \ users \ politesp \ desktop java.runtime.version = 1.6.0_18-b07 java.awt.graphicsenv = sun.awt.Win32Graphics environment java.endorsed.dirs = C: \ Program Files \ Java \ jre6 \ lib \ endorsed o.sch = x86 java.io.tmpdir = C: \ user \ politesp \ AppData \ local \ temp line.separator = java.vm.specification.vendor = Sun Microsystems Inc. user.variant = Os.name = Windows 7 sun.jnu.encoding = Cp1252 java.library.path = C: \ windows \ system32 ;; C: \ wINDOWS \ Sun \ ... java.specification.name = Java Platform API Specification Java .class.version = 50.0 sun.management.compilter = Hotspot client compiler os.version = 6.1 user.home =% userprofile% user Timezone = java.awt.printerjob = sun.awt.windows.WPrinterJob file.encoding = Cp1252 java .specification.version = 1.6 user.name = politesp java.class.path = Java.vm.specification.version = 1.0 sun.arch .data.model = 32 java.home = C: \ Program Files \ Java \ jre6 java.specification.vendor = Sun Microsystems Inc. user.language = en awt.toolkit = Sun.awt.windows.WToolkit java.vm.info = Mixed mode, shared java.version = 1.6.0_18 java.ext.dirs = C: \ Program Files \ Java \ jre6 \ lib \ ext ... C: ... sun .boot.class.path = C: \ Program Files \ Java \ jre6 \ lib \ resour ... java.vendor = Sun Microsystems Inc. file.separator = \ java.vendor.url.bug = http: // Java. Sun.com/cgi-bin/bugreport ... sun.cpu.endian = little sun.io.unicode.encoding = Unicode light sun.desktop = windows sun.cpu.isalist = pentium_pro + mmx pentium_pro pentium + m ...  

Update:

used the links of bugs searched by Andreas I:

HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ Shell Folder \ Desktop \ % userprofile% \ Desktop is on my installation of Windows 7 Enterprise

When I change the value of this key to C: \ Users \ royalty Esp \ Desktop , my user.home correctly resolves why any thoughts occur is?

Most of the registry keys located at:

HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ Shell Folder

% Userprofile% has started with I updated all the registry keys that start with% userprofile% which is C : \ Users \ myusername starts with I have verified on Windows XP that the path is really hard coded and% userprofile% is not used. People of IT mentioned that the registry keys were omitted to use% userprofile% due to the default profile used in Windows 7. JVM is expected to cache the desktop path hard. It will not evaluate the environmental variable.

You can update registry keys after one or you can export the folder and change the keys. Here's how you can export and import registry keys:

  Start 1 & gt; Run 2. Type regedit. It opens Registry Editor 3. Browse to HKEY_CURRENT_USER \ Software \ Microsoft \ Windows CurrentVersion \ Explorer \ Shell Folder. 4. Right click on the Shell folder and select Export. 5. Select Desktop as the destination and enter the Shell folder for the file name and save the file. 6. Open the file in a text editor and replace% userprofile% with C: \\ user \\ Save yourusername file and close it. 7. Go back to the Registry Editor window and click File & gt; Import from main menu 8. Choose Shell Folder. Open and click. 9. Close Registry Editor and delete the Shell Folders.reg file from the desktop.  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -