title: Cygwin with PyCharm
body: <p>I want to run PyCharm (linux version) on Cygwin (Windows 8 x64) with Oracle java (windows version).</p>
  
  <p>I've tried with correction pycharm.sh from idea of <a href="https://stackoverflow.com/questions/2004915/cygwin-and-java/2010652#2010652">this answer</a>, but faced with problems:</p>
  
  <ul>
  <li><p><code>unable to load main class com.intellij.idea.Main</code> (if put <code>$JAVA_HOME</code> and <code>$SCRIPT_LOCATION</code> to <code>.bashrc</code>) </p></li>
  <li><p>or eval <code>cygpath --absolute --windows "$JAVA_HOME/bin/java.exe"</code> with response ==</p>
  
  <p><code>cygwin warning:
  MS-DOS style path detected: C:\Java\jre7\bin\java
  Preferred POSIX equivalent is: /cygdrive/c/Java/jre7/bin/java
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
  http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
  ./pycharm.sh: line 204: C:Javajre7binjava: command not found</code></p></li>
  </ul>
  
  <p>(if put <code>JAVA_HOME</code> and <code>SCRIPT_LOCATION</code> to windows <code>PATH</code>)</p>
  
  <ul>
  <li>if simply <code>eval "/cygdrive/c/Java/jre7/bin/java.exe"</code> - response  is equilent to first case</li>
  </ul>