我无法从 BashOnWindows10 运行 Windows 版本的 java.exe。它存在于 PATH 中,但调用失败了。我的目标是避免在 WSL 中再次安装 JDK/JRE。当我运行 Creator 的更新时,我期待能够调用任何 Windows 应用程序。任何想法为什么会发生这种情况?但是,我能够成功启动 Python 的 Windows 安装。
猛击
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.
>>>
Run Code Online (Sandbox Code Playgroud)
命令行工具
C:\Users\username>java -version
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java …Run Code Online (Sandbox Code Playgroud) DISKPART> list partition
Partition ### Type Size Offset
------------- ---------------- ------- -------
Partition 1 System 500 MB 1024 KB
Partition 2 OEM 40 MB 501 MB
Partition 3 Reserved 128 MB 541 MB
Partition 4 Recovery 490 MB 669 MB
Partition 5 Primary 920 GB 1159 MB
Partition 6 Recovery 350 MB 921 GB
Partition 7 Recovery 9 GB 921 GB
Run Code Online (Sandbox Code Playgroud)
以上是我最近升级到 Windows 8.1 的系统上的分区列表。为什么有多个恢复分区(4,6,7)?不应该只有一个恢复分区吗?保留分区 (#3) 的用途是什么?
在分区 4,6 和 7 中,只有 #4 显示了任何有意义的标签:
Partition 4
Type : de94bba4-06d1-4d40-a16a-bfd50179d6ac
Hidden …Run Code Online (Sandbox Code Playgroud)