Pages

Wednesday, 23 July 2008

Why Java on windows ignores your PATH

This is kind of and old tip; that is very frustrating until someone tells you about it. And then it is still frustrating. Java on windows uses a placeholder in the System32 directory; this placeholder looks up the correct version of Java in the registry and calls that.

No "JAVA_HOME" environmental variable needed! Unless of course you are trying to use something like Maven or ANT which likes the idea of an environmental variable.

The trick is to change your PATH so that JAVA_HOME\bin is added before SYSTEM32.

About Me

Active Java developer with a hands-on approach available for consulting and training. Brings an enterprise computing / business intelligence background to GIS and standards work.

Serves on the Project Steering Committee of GeoServer, GeoTools and uDig projects. Outreach to new projects as a member of both the Open Source Geospatial Foundation and LocationTech Industry Working Group.