Closed jvasileff closed 8 years ago
Regarding item 2, ceylon
works fine from the command prompt as long as the following in ceylon.bat
is left alone:
:: Find Java in the registry
set "KEY_NAME=HKLM\SOFTWARE\JavaSoft\Java Runtime Environment"
Altering the key causes ceylon
to report "Java not found, ...", even though java
is in the PATH
.
@quintesse do you have any comment/thoughts on why ceylon.bat
fails to find Java via the registry when launched by Visual Studio Code? Is this correct/expected? Should ceylon.bat
also be looking in the PATH
?
AFAIK in Windows we never look for Java in the PATH. As for why it doesn't find Java I don't know, I'd put in a lot of echo
s to see what it's doing :)
The PAth error is strange too, in general the Java file stuff is pretty flexible in accepting any kind of combination of forward and backward slashes.
Windows :/
The error is "ERROR: The system was unable to find the specified registry key or value."
The fix (on my installation) is to add /reg:64
to the REG QUERY
command in the batch file. Maybe node is 32 bit and that matters or something. How would I know?
Fixed with the temporary workaround of requiring JAVA_HOME
. See also https://github.com/ceylon/ceylon/issues/6544
Problems include:
ceylon.exe
, but should look forceylon.bat
ceylon.bat
reports "you must install Java in order to compile and run Ceylon programs" unless theJAVA_HOME
environment variable is set, despitejava
being in the system path andJavaSoft
registry keys existing.java.nio
error that leaks throughceylon.file
).