安装了最新的JDK 1.8.0,但我的Javac -version仍然显示旧版本(Windows 7-64) [英] Installed latest JDK 1.8.0, but my Javac -version still shows an older version (Windows 7 - 64)

查看:185
本文介绍了安装了最新的JDK 1.8.0,但我的Javac -version仍然显示旧版本(Windows 7-64)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试通过教程安装带有Angular的NativeScript a>在过去的两天里,我一直遇到围绕Android SDK无法正确安装和冻结的问题,最后在尝试安装Android Studio之前重新安装了最新的JDK和JVE.当我研究问题时,我想我找到了罪魁祸首:

I've been attempting to install NativeScript with Angular with this tutorial for the past two days, and I keep running into problems surrounding the Android SDK not installing correctly and freezing, and finally re-installing the latest JDK and JVE before attempting to install Android Studio. As I researched the problem I think I found the culprit:

当我运行 Javac -version 时,我不断获得较旧版本的JDK,它指出: javac 1.6.0_45 ,但是我具有最新版本的 Jdk 1.8.0_102.

When I run Javac -version I keep getting an older version of JDK, it states: javac 1.6.0_45 However I have the latest version of Jdk 1.8.0_102.

我研究了这个问题,但只发现了复杂的解决方案使变量路径受挫,或者只发现了MAC解决方案. 当我运行Javac -version时,我该怎么做才能更新JDK?

I researched the problem, but only found either complex solutions invilving the variable path, or MAC solutions. What can I do to update the JDK when I run Javac -version?

用户变量:PATH

cmd> set PATH=%PATH%;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%NVM_HOME%;%NVM_SYMLINK%

系统变量:PATH

JAVA_HOME%/bin;C:\Python27\;C:\Python27\Scripts;C:\Ruby22-x64\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jdk1.6.0_45\bin;C:\Program Files (x86)\Beyond Compare 3;C:\Program Files (x86)\Brackets\command;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\ProgramData\chocolatey\bin;C:\Program Files\Java\jdk1.8.0_102\bin;C:\Users\Godsnake\AppData\Local\Android\android-sdk\tools;C:\Users\Godsnake\AppData\Local\Android\android-sdk\platform-tools;%NVM_HOME%;%NVM_SYMLINK%;C:\Program Files\nodejs

注意:,我对使用Windows路径完全陌生,而且我对环境变量一无所知,但是我发现某些应用程序的路径我已经安装了所有出现在系统变量中的变量:Python,Node,Ruby,AngularJS2,AndroidSDK.这就是说,如果有人可以在使用,最佳实践以及用户变量和系统变量之间的差异方面提供一些指导,那将是一个补充奖金.并且请给我一些指导,就像我是个完全的初学者一样.谢谢!

Note:, I'm a complete noob at playing around with the Windows path, and I don't really know anything about the environment variable, but I see that the paths of certain applications that I have installed all appear in the system variables: Python, Node, Ruby, AngularJS2, AndroidSDK.. That being said if anyone can me some guidance on the uses, best practice, and differences between user variable and system variable that will be an added bonus. And please give me instructions like I'm a complete beginner when it comes to messing around with the path. Thanks!

推荐答案

您的系统路径仍包含1.6.

Your system path still contains 1.6.

C:\ Program Files \ Java \ jdk1.6.0_45 \ bin;

C:\Program Files\Java\jdk1.6.0_45\bin;

它兼有,请尝试将其删除,仅设置为1.8. (已经在那里)

It has both, try removing this and just having 1.8. (already in there)

这篇关于安装了最新的JDK 1.8.0,但我的Javac -version仍然显示旧版本(Windows 7-64)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆