关于Java的安装 [英] about the installstion of java

查看:90
本文介绍了关于Java的安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经正确安装了Java
而且我还通过
设置了路径 右键单击->我的电脑->高级->环境变量->系统变量->编辑
然后我把一个simicolum和复制路径C:\ program files \ java \ jdk1.6.0_13 \ bin

但我有一个问题..
如果我将程序保存在bin文件夹中,则只有它重新协调javac命令....

并在桌面上保存程序
并在命令提示符下键入cd desktop
然后javac
它给出错误的内部或找不到外部命令.

我该做什么?????????

i have installed java correctly
and i also set the path by
right click->my computer->advanced->envirnment variable->system variable->edit
and then i put a simicolum and copypath C:\program files\java\jdk1.6.0_13\bin

but i have 1 problem..
if i save a program in bin folder then only it reconize javac command....

and if a save a program on desktop
and type cd desktop in command prompt
then javac
it gives the error internel or external command could not found.

what i do????????

推荐答案

为什么要将程序保存在桌面上?您需要将它们保存在bin文件夹中才能进行编译,否则将无法编译识别javac命令.我也建议您在Netbean/Eclipse中使用java进行代码...这将使这些事情变得更容易. http://www.wikihow.com/Write-Your-First-Program-in-Java [ ^ ]
http://www3.ntu.edu.sg/home/ehchua/programming/howto/NetBeans_HowTo.html [ ^ ]
http://www3.ntu.edu.sg/home/ehchua/programming/howto/EclipseJava_HowTo.html [ ^ ]
Why you save your program in desktop?you need to save them in your bin folder to compile otherwise it willnot recognize javac command.I also recommand you to use in Netbean/Eclipse to code in java...it will make these things easier..See these links..
http://www.wikihow.com/Write-Your-First-Program-in-Java[^]
http://www3.ntu.edu.sg/home/ehchua/programming/howto/NetBeans_HowTo.html[^]
http://www3.ntu.edu.sg/home/ehchua/programming/howto/EclipseJava_HowTo.html[^]


-我有理由将其写为胖大而带下划线的符号-请在工作中使用像样的IDE.

Eclipse [ ^ ]和 Netbeans [
PLEASE - and there is a reason for me to write it fat, big and underlined - PLEASE use a decent IDE for your work.

Eclipse [^]and Netbeans [^]are both free. There is no - and I mean absolutely totally under any circumstance NO reason to not use them.

The IDE will do the compiling for you.


这篇关于关于Java的安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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