Topic: 关于环境变量的问题 |
Print this page |
1.关于环境变量的问题 | Copy to clipboard |
Posted by: soundapple Posted on: 2006-10-25 10:21 8261669 wrote: 按照这个设置环境变量怎么运行不起来?新学java 感觉环境变量是个大问题 请教!!! |
2.Re:关于环境变量的问题 [Re: soundapple] | Copy to clipboard |
Posted by: soundapple Posted on: 2006-10-25 10:27 本人装的是jdk-1_5_0_09-windows-i586-p.exe |
3.Re:关于环境变量的问题 [Re: soundapple] | Copy to clipboard |
Posted by: soundapple Posted on: 2006-10-25 10:30 619KB BMP --> 8KB GIF |
4.Re:关于环境变量的问题 [Re: soundapple] | Copy to clipboard |
Posted by: soundapple Posted on: 2006-10-25 10:38 379KB BMP --> 6KB GIF |
5.Re:关于环境变量的问题 [Re: soundapple] | Copy to clipboard |
Posted by: soundapple Posted on: 2006-10-25 11:41 426KB BMP --> 5KB GIF Please don't use BMP in the future |
6.Re:关于环境变量的问题 [Re: soundapple] | Copy to clipboard |
Posted by: why Posted on: 2006-10-25 19:10 >选择高级--环境变量 I prefer using a cmd file than setting the system configuration >classpath变量,变量值为:.%java_home%;%java_home%\lib\tools.jar a ; is missing between . and %java_home%; actually CLASSPATH=. is good enough You have to compile your .java program first > javac Test.java then > java -cp . Test to check version > java -version |
7.Re:关于环境变量的问题 [Re: soundapple] | Copy to clipboard |
Posted by: soundapple Posted on: 2006-10-25 21:13 CLASSPATH按楼上说的改了以后 出现这个问题 You have to use a program (e.g. Paint) to convert the BMP image to GIF format, saving it as .GIF would not help. Again, you could just copy-n-paste the contents in the windows. I have converted the 575KB GIF.BMP to this 7KB GIF |
8.Re:关于环境变量的问题 [Re: soundapple] | Copy to clipboard |
Posted by: why Posted on: 2006-10-26 17:38 1. you don't want to put your .java files under \JDK\bin 2. check whether Test.java is there: >dir Test.java.* |
9.Re:关于环境变量的问题 [Re: soundapple] | Copy to clipboard |
Posted by: soundapple Posted on: 2006-10-26 19:38 我的环境变量设置如下: CLASSPATH .;%JAVA_HOME%;%JAVA_HOME%\lib\tools.jar JAVA_HOME D:\JDK\jdk-1_5_0_09 PATH ;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem%JAVA_HOME%\bin;&JAVA_HOME&\jre\bin |
10.Re:关于环境变量的问题 [Re: soundapple] | Copy to clipboard |
Posted by: soundapple Posted on: 2006-10-26 19:51 这个设置: PATH ;c:\j2sdk1.4.1_01\bin CLASSPATH .;c:\j2sdk1.4.1_01\lib\dt.jar;c:\j2sdk1.4.1_01\lib\tools.jar JAVA_HOME c:\j2sdk1.4.1_01cd /d D:\ [cd空格/d空格D:\] [ ]中的是什么意思? 编译执行时写这个 cd空格/d空格D:\ 然后才是 >javac Test.java >java Test |
11.Re:关于环境变量的问题 [Re: soundapple] | Copy to clipboard |
Posted by: iistmr Posted on: 2006-10-27 09:41 大家最好在CLASSPATH中还加一个servlet.jar |
12.Re:关于环境变量的问题 [Re: iistmr] | Copy to clipboard |
Posted by: why Posted on: 2006-10-27 11:13 iistmr wrote: Why? Where is servlet.jar? Could it be something else? Please ignore this piece of information. |
13.Re:关于环境变量的问题 [Re: soundapple] | Copy to clipboard |
Posted by: 8261669 Posted on: 2006-11-01 08:26 最后新建个classpath变量,变量值为:.%java_home%;%java_home%\lib\tools.jar 这个是错误的,应该在点后加分号。 如下:.;%java_home%;%java_home%\lib\tools.jar |
14.Re:关于环境变量的问题 [Re: iistmr] | Copy to clipboard |
Posted by: soundapple Posted on: 2006-11-02 11:48 iistmr wrote: servlet.jar直接加在classpath后面吗? servlet.jar是干什么的? |
15.Re:关于环境变量的问题 [Re: soundapple] | Copy to clipboard |
Posted by: zqailc Posted on: 2006-11-10 20:15 刚注册,呵呵 新鲜哈 以后还要努力哦 |
16.Re:关于环境变量的问题 [Re: soundapple] | Copy to clipboard |
Posted by: Revolution Posted on: 2006-11-19 14:56 直接在PATH后面加上你的JDK安装路径就可以了 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |