How does windows resolves short names (8.3) into full names

Posted by i3anshee on Stack Overflow See other posts from Stack Overflow or by i3anshee
Published on 2010-05-24T13:54:36Z Indexed on 2010/05/24 14:11 UTC
Read the original article Hit count: 133

Filed under:
|

I have a PC running 64 bit Windows Server 2003. There is a java application which uses cmd file as a launcher. The launcher does this

SET JAVA_HOME= C:\Progra~1\Java

"%JAVA_HOME%\bin\java" [java program execution line]

Java is installed in C:\Program Files\Java. Since it is a x64 windows it also has C:\Program Files (x86)\ folder.

Now the actual problem is that from time to time this application fails to start because it fails to find java.

So the question is what windows does to resolve such ambiguity? Based on what it makes decisions about which folder to choose?

© Stack Overflow or respective owner

Related posts about java

Related posts about Windows