Closed pagmoro closed 3 years ago
Hi @pagmoro
The exception Cannot run program "java"
would suggest that Java is either:
Java
is not on the system path on the machineCan you log into the box and try java -version
from a terminal session?
Thank you! That fixed it. Perhaps in the next release , it would be good if you could throw a User friendly exception which indicates that Java was not found , so users can fix it themselves.
With regards to the exception, It's prudent to ensure you have the tools (i.e. Java) installed in your machine before attempting to use a library that requires Java.
A library shouldn't check for availability of tools on the machine. It's up to the owner to ensure that tools are installed on the machine.
Courgette does not check for availability of tools (and unlikely to do so) as this falls outside the remit of this library.
Actually , this happens when running the courgette-jvm runner through intellij - so users expect the in-built java to be used , but are not aware that it is starting a new java process and they need java configured outside intellij. I have seen many utilities warn about JAVA_HOME or java in Path - however this is not a big deal , there are very few users who have this unique setup , so I'm good with it. Thank you!
Hi @prashant-ramcharan
We're getting the following Exception when running courgette-jvm Runner in one of our UNIX boxes. (Jenkins on UNIX server is fine). So, it possible something specific to the box ( for e.g , this box has a non-executable /tmp directory)
Any ideas on what could be the issue? (Stack trace below)