Tips and general rambling about Oracle JDeveloper, SCM, user interfaces, and other miscellaneous stuff.

Calendar

November 2003
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
Oct   Dec

Brian Duff's Weblog

 27 November 2003


How Can I Migrate Settings Between JDeveloper Releases?

A frequent question about JDeveloper is how can I maintain preferences when upgrading to a new release?. JDeveloper has a migration framework that fully supports moving your preferences to new releases.

On Linux, Solaris and MacOS X, migration of settings happens automatically. When you launch a new release of JDeveloper for the first time, the migrate user settings dialog will appear automatically:

Image of JDeveloper Migrate User Settings Dialog

In the Migrate User Settings dialog, you can select which release you want to migrate from in the drop down list, or click Browse... to locate an IDE installation that isn't listed. In the Browse dialog, you need to locate the JDeveloper system directory of the old release, which is normally called something like "system9.0.x.y.z".

On Windows, there are two ways to use the migration functionality. You can run JDeveloper with the -migrate command line option. E.g. in Windows XP, open a command prompt and type:

c:\path\to\jdev\bin\jdev.exe -migrate

When the Migrate User Settings dialog appears, you'll need to use the Browse... button to locate the old version of JDeveloper; the dialog won't find old installations automatically.

Alternatively, if you want JDeveloper on Windows to behave as it does on UNIX, you can set the JDEV_USER_DIR environment variable. This tells JDeveloper where to store user-specific settings. By setting this to a location outside the JDeveloper install directory, JDeveloper will automatically prompt you to upgrade your settings whenever you install a new release of the product.

To get this working on Windows XP, go to the Advanced page of the System Control Panel. Click on the Environment Variables button, and under User variables for (username), click New. In the dialog that appears, enter JDEV_USER_DIR as the Variable name and the path of a directory to store settings in as the Variable value. You can use any directory you like here, but a good choice is somewhere in the Documents & Settings directory. On my PC, I have this set to "c:\documents and settings\bduff\jdevhome".


9:25:56 AM     comment []


weblog   |   articles
© Copyright 2003 Brian Duff. Last Updated 06/12/2003; 00:27:12. Java is a trademark or registered trademark of Sun Microsystems, Inc. in the United States and other countries.