Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerShell 安装 Java 失败 #30

Open
chaopeng opened this issue Apr 9, 2015 · 1 comment
Open

PowerShell 安装 Java 失败 #30

chaopeng opened this issue Apr 9, 2015 · 1 comment

Comments

@chaopeng
Copy link

chaopeng commented Apr 9, 2015

PS C:\Users\peng> jenv list java
Avaliable java Versions
=====================================
   1.8.0_40
   1.8.0_31
   1.8.0_25
>* 1.8.0_20
   1.8.0_11
   1.8.0_05
   1.8.0
   1.7.0_75
   1.7.0_67
   1.7.0_65
   1.7.0_60
   1.7.0_55
   1.7.0_51
   1.7.0_45
   1.7.0_40
   1.7.0_25
   1.6.0_45
PS C:\Users\peng> jenv current java
c:\jenv\candidates\java\1.8.0_20
PS C:\Users\peng> java -version
java : 无法将“java”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确
,然后再试一次。
所在位置 行:1 字符: 1
+ java -version
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (java:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
@chaopeng
Copy link
Author

Cygwin 安装还是会失败。

➜  ~  jenv install java 1.8.0_20
Installing: java 1.8.0_20
Parsing http://jenv.mvnsearch.org/candidate/java/download/1.8.0_20/Cygwin/x86_64

Found a previously downloaded java 1.8.0_20 archive. Not downloading it again...

Do you want java 1.8.0_20 to be set as default? (Y/n): y
Setting java 1.8.0_20 as default.
Done installing!
➜  ~  java
zsh: exec format error: java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant