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

REPL should also use all means to locate tools.jar #7410

Closed
scabug opened this issue Apr 23, 2013 · 2 comments
Closed

REPL should also use all means to locate tools.jar #7410

scabug opened this issue Apr 23, 2013 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Apr 23, 2013

This fix is in Par-Test, to try java.home after $JAVA_HOME fails.

If my JAVA_HOME is JRE 6 (because java on my Linux is v6, even though javac is v7), then running under v7 should not fail (when we know perfectly well what java.home is).

However, if JAVA_HOME is a JDK 6, we don't bother probing every tools.jar to see if it is one we'd care to associate with. Someone who does that knows what he or she is doing (unlike me, see above).

The other untried unheuristic is to use the location of the command-line javac (as above) to locate the JDK. (Come to think of it.)

@scabug
Copy link
Author

scabug commented Apr 23, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7410?orig=1
Reporter: @som-snytt
Affected Versions: 2.11.0-M2

@scabug
Copy link
Author

scabug commented May 23, 2013

@som-snytt said:
scala/scala#2584

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

No branches or pull requests

2 participants