This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Windows 7 64bit Pathproblems ("Program Files (x86)" breaks scripts)

1 reply
bnord 2
Joined: 2009-10-15,
User offline. Last seen 42 years 45 weeks ago.

I encountered some problems with Scala (2.7) on Windows 7 64bit.
It seems that the paths used by Windows 7 for storing 32bit applications
like Scala or Java
("C:\Program Files (x86)") break the batch scripts supplied in "/bin" with
Scala 2.7.6/2.7.7RC1.

Runing any of them yields " "\Scala" kann syntaktisch an dieser Stelle nicht
verarbeitet werden."

Installing Scala in a place not containing the "(x86)" in the paths leaves
the same error for the Java path.

A workaround was setting the "_JAVACMD" variable to "java" in the supplied
scripts.

modulo
Joined: 2010-04-09,
User offline. Last seen 42 years 45 weeks ago.
Re: Windows 7 64bit Pathproblems ("Program Files (x86)" breaks s

bnord wrote:
>
>
> [..]
>
> A workaround was setting the "_JAVACMD" variable to "java" in the supplied
> scripts.
>
>

I used "junction" to add a link "ProgramFilesx86" pointing to ("Program
Files (x86)" and used "ProgramFilesx86" in the PATH variable. Thanks for
pinning down the problem to the braces!

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland