我无法从BashOnWindows10运行Windows版本的java.exe。它存在于PATH中,但是调用会以静默方式失败。我的目标是避免必须在WSL中再次安装JDK / JRE。当我运行Creator的更新程序时,我期望能够调用任何Windows应用程序。任何想法为什么会这样?但是,我能够成功启动Windows的Python安装。
重击
username@PC:~$ which java.exe
/mnt/c/ProgramData/Oracle/Java/javapath/java.exe
username@PC:~$ java.exe
username@PC:~$ <<<nothing happens
username@PC:~$ which python.exe
/mnt/c/Python34/python.exe
username@PC:~$ python.exe
Unable to translate current working directory. Using C:\WINDOWS\system32
Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23) [MSC v.1600 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
命令文件
C:\Users\username>java -version
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
它与Java不相关,所有Windows二进制文件都有此问题。请参见此
—
eckes