我想用 Oracle java(Windows 版本)在 Cygwin(Windows 8 x64)上运行 PyCharm(Linux 版本)。
我已经尝试从这个答案的想法中纠正 pycharm.sh ,但遇到了问题:
unable to load main class com.intellij.idea.Main(如果把$JAVA_HOME和$SCRIPT_LOCATION到.bashrc)或 eval
cygpath --absolute --windows "$JAVA_HOME/bin/java.exe"响应 ==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
(如果放在JAVA_HOME和SCRIPT_LOCATION窗口PATH)
- 如果简单的话
eval "/cygdrive/c/Java/jre7/bin/java.exe"- 响应等同于第一种情况