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.



Documentation Harmed in the making of this post:

4 comments:

Unknown said...

Thank you! helped a lot!

Unknown said...
This comment has been removed by the author.
sheela rajesh said...

Nice idea,keep sharing your ideas with us.i hope this information's will be helpful for the new learners.
Selenium Training in Chennai
Selenium Training Institute in Chennai
JAVA Training in Chennai
Python Training in Chennai
Big data training in chennai
IOS Training in Chennai
Selenium Training in Chennai
Selenium Training in OMR

Rodney Janis said...

Each time I used to always check blog posts within the first hours in the break of day, because I like to get information increasingly more.
UX agencies