Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scala.bat on x64 windows #4019

Closed
scabug opened this issue Nov 22, 2010 · 7 comments
Closed

scala.bat on x64 windows #4019

scabug opened this issue Nov 22, 2010 · 7 comments
Labels

Comments

@scabug
Copy link

@scabug scabug commented Nov 22, 2010

I just spent considerable time trying to launch scala in a windows 7 x64 environment. The problem and solution are here: http://stackoverflow.com/questions/430376/batch-files-vista-x64-if-and-parenthesis

Basically, SCALA_HOME is C:\Program Files (x86)\scala . In batch files, variables in 'if' statements are expanded before the 'if' statement is parsed. The parenthesis confuses the parser

This problem will probably become more and more common as more people switch to new computers.

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Nov 22, 2010

Imported From: https://issues.scala-lang.org/browse/SI-4019?orig=1
Reporter: Ittay Dror (ittayd)

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Nov 22, 2010

Ittay Dror (ittayd) said:
Maybe the comment here: http://marsbox.com/blog/howtos/batch-file-programfiles-x86-parenthesis-anomaly/ is useful

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Nov 22, 2010

@paulp said:
Coincidentally I installed windows 7 this weekend just to try to deal with some of its issues a little bit. I am checking in some work today but I don't know whether this issue is deal with or not: I habitually avoid installing things in directories full of parentheses and spaces. I'll have to clear it and reinstall things as if I'm not paranoid about exactly this kind of issue.

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Nov 22, 2010

@paulp said:
Replying to [comment:1 ittayd]:

Maybe the comment here: http://marsbox.com/blog/howtos/batch-file-programfiles-x86-parenthesis-anomaly/ is useful

Can you give me enough detail to understand why scala is being installed in "C:\Program Files (x86)" in your environment and not in mine? I have that directory, and there are things in it, but both java and scala by default installed into "C:\Program Files". I am using Windows 7 Ultimate 64-bit.

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Nov 23, 2010

Ittay Dror (ittayd) said:
About Java, you probably downloaded the 64bit version. I use the 32 bit.

About Scala, I don't know how the installer chooses where to install, but it probably ends up next to the JDK.

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Nov 23, 2010

@paulp said:
Replying to [comment:4 ittayd]:

About Java, you probably downloaded the 64bit version. I use the 32 bit.

About Scala, I don't know how the installer chooses where to install, but it probably ends up next to the JDK.

Right on both counts. Thanks.

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Nov 13, 2011

Commit Message Bot (anonymous) said:
(extempore in r25996) Delayed expansion in scala.bat.

Closes #4019.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.