Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to install Java JDK on Windows via cygwin/ssh
    text
    copied!<p>For testing purposes, I am automating creation of configured EC2 machines. The creation/configuration is done via ssh connection (same logic for various OSs). On windows (Windows 2003 Server), there is cygwin with ssh pre-configured, so that I can ssh there.</p> <p>As part of the configuration, I need to install given version of Java SDK. I upload the exe installer (jdk-6u34-windows-i586.exe) to the machine and run it with the /s parameter (silent install). When I run this from windows console (in remote desktop) or even via cygwin in remote desktop, it works perfectly. But when I ssh to there and run it in cygwin via ssh, if fails.</p> <p>The fail seems to be quite strange, since the installer <strong>partially</strong> extracts it's content into <code>c:\Documents and Settings\Administrator\Application Data\Sun\Java\jdk1.6.0_34</code> and then it fails with <strong>exit code 67</strong>. The number of files extracted before exit varies.</p> <p>When doing this programatically using Java and <code>Jsch</code>, the command also prints error message <code>initgroups: Permission denied</code> to the error stream. I don't see this message when I connect manually via ssh, so I am not sure, if it's related (when googling, I found this error occuring in completely different context, which did not help me).</p> <p>I would welcome any explanations, why this happens (and how to fix/work around it). Other hints how to reliably automatically install given JDK on EC2 windows machine are welcomed as well. Thanks. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload