在Win7 64位中安装Java
我有一台新笔记本电脑,尝试安装 jdk-1_5_0_22-windows-amd64、jdk-1_5_0_22-windows-i586-p 和 jdk-6u22-windows-i586 但没有成功。
以前用过java,对环境变量比较熟悉。 但是,我无法在命令提示符处获取 java 版本,也无法让 java 编译器工作。
另外,我正在使用 Blackberry JDE,但它找不到要构建的已安装版本。
谁能帮助我吗?
I have a new laptop and attempted to install jdk-1_5_0_22-windows-amd64, jdk-1_5_0_22-windows-i586-p and jdk-6u22-windows-i586 without success.
I have used java before and I am familiar with environment variables.
However I cannot get the java version at command prompt or the java compiler to work.
Also I am using Blackberry JDE and it does not find the installed version to build.
Can anyone help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将 Java bin 文件夹的路径添加到 PATH 环境变量。
为了从命令行运行任何 java,必须将 java 安装的 bin 文件夹添加到 PATH 环境变量。如果没有这个,命令提示符将无法找到您的 java 安装,因此它无法运行您的文件。设置环境变量后,请确保打开命令行的新副本。
右键单击我的电脑并选择属性。选择“高级”选项卡,然后选择“环境变量”按钮。系统变量下应该有一个“Path”。在末尾添加一个分号,然后添加安装的 bin 文件夹的路径。
Add the path to the Java bin folder to your PATH environment variable.
In order to run any java from the command line, the bin folder of the java installation must be added to the PATH environment variable. Without this, the command prompt cannot find your java installation, so it cannot run your files. Make sure to open a new copy of the command line after you set the environment variable.
Right click on My Computer and choose Properties. Choose the Advanced tab, and then the Environment Variables button. There should be a "Path" under system variables. Add a semicolon to the end and add the path to your installation's bin folder after that.
我想象 Blackberry JDE 使用 JAVA_HOME 变量。我猜测它没有设置,所以 JDE 不知道在文件系统上查找哪里。
我认为 Erick 验证 bin 目录是否已添加到 PATH 是正确的。如果您使用安装程序,则可能需要重新启动计算机。
最后,JDE 似乎是一个稍微老化的软件包。我似乎找不到Blackberry JDE 支持64 位java 的声明。
I would imagine that the Blackberry JDE makes use of the JAVA_HOME variable. I am guessing that it is not set so the JDE doesnt know where to look on the file system.
I think that Erick is correct in verifying that the bin directory has been added to the PATH. If you used the installer, you might need to reboot your machine.
Finally, the JDE appears to be a slightly aged package. I cannot seem to find the statement saying that the Blackberry JDE supports 64 bit java.