I just got Win2000 and can't figure out how to compile my java files. Anyone remember how? I have been using windows 98 and just now got the upgrade to 2000. I am a little behind the times, sorry!! jim [This message has been edited by jim, valenta (edited September 30, 2001).]
Martin Rennix
Ranch Hand
Joined: Sep 30, 2001
Posts: 34
posted
0
Should be exactly the same under W2K. Check your javac.exe is in your path. Martin
jim, valenta
Ranch Hand
Joined: Mar 16, 2001
Posts: 47
posted
0
Hi, I went to the run box in w2000 and put in java then the file but it didnt run. Do I need the path or something?? jim
Martin Rennix
Ranch Hand
Joined: Sep 30, 2001
Posts: 34
posted
0
What exact error message are you getting? If it's "bad command or filename" then yes, you do need to set your system path Martin
jim, valenta
Ranch Hand
Joined: Mar 16, 2001
Posts: 47
posted
0
Hi, Sorry it took so long to get back. I put the complete address in the run box which is in the start menu but it just brings up a frame with the folder that I typed in.
jim, valenta
Ranch Hand
Joined: Mar 16, 2001
Posts: 47
posted
0
Hi, If anybody is interested I used cmd in the run box to bring up a DOS prompt to run the JAVA
In windows 2000 here is how you set your path and classpath. Right click on My Computer and choose properties. Then choose the Adcanced tab Next click Environment Variables In the System Variables, highlight the Path and choose Edit Then append the path to you Java\Bin folder. Next you need to add a ClassPath so choose New In the Vairable Name Box, type classpath in the variable value, type the path you need to specify. That's it. OK all the way out and you are good to go. No need to restart the PC.
------------------ Happy Coding, Gregg Bolinger
jim, valenta
Ranch Hand
Joined: Mar 16, 2001
Posts: 47
posted
0
Gregg, Hi. I did as you said I copied the system variable path but am not sure how to append it to the bin directory. I added C:\jdk1.3.0_01 to the system variable and added a new classpath of the same (C:\jdk1.3.0_01) Also, I have the path appended to my win98 application but It still wont work (C:\jdk1.4\bin)The java works but the javac, which is in the bin file, will not. It gives the bad command or file name error.
[This message has been edited by jim, valenta (edited October 05, 2001).]
Marilyn de Queiroz
Sheriff
Joined: Jul 22, 2000
Posts: 9033
10
posted
0
Did you reboot after you changed your environment path and classpath variables?
"Then append the path to you Java\Bin folder" means to append the path to <JAVA_HOME>\bin to your current path. For example, if your current path is C:\;C:\WINNT;C:\java it will be C:\;C:\WINNT;C:\java;C:\jdk1.4.0\bin
[This message has been edited by Marilyn deQueiroz (edited October 05, 2001).]
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
jim, valenta
Ranch Hand
Joined: Mar 16, 2001
Posts: 47
posted
0
Hi, Yes, I appended it properly. I also rebooted. I made the class path the same as the path that I appended to the system variable. jim PS I got win2000 javac working by adding jdk1.3, 1.3.0_01 and jdk1.4.0. I had to load all 3. I did the dsme with win98 but the compiler still will not work.
[This message has been edited by jim, valenta (edited October 06, 2001).]
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.