Hi, I am a total newbie here. I've been searching the web for a few hours
looking for a good answer to my question, but have found nothing. Sorry to
bug you guys with what I'm sure is a dumb question, but I just can't figure
it out. Here goes...
I just recently downloaded J2SE 5.0. I have run the program and, as far as
I can tell, have installed it. I then started looking for a good tutorial,
and found this on the Java website (I'm sure you'll recognize it):
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html
I tried to follow the instructions, but could not get the program to
compile. It's that "The name specified is not recognized as an internal or
external command, operable program or batch file." error. I know the
tutorial addresses this issue, but the tutorial is a bit out of date (does
not mention how to fix the problem with windows XP command prompt).
Can anyone give me some assistance? I would like to know how to get my
Java set up so that I can compile a program and continue the tutorial.
Please keep in mind that I am a TOTAL newbie... I do not know what PATH's
are, or any of that stuff.
Once again, sorry for the dumb question, but I am totally lost.
klynn47@comcast.net - 25 Feb 2005 02:27 GMT
The PATH variable is a list of directories containing executable
programs. Go to Control Panel and System, choose the Advanced Tab and
click Environment Variables. On your c:\ drive, there should be a
directory like j2sdk1.5.0... or something like that. You need to add
the directory c:\j2sdk1.5.0...\bin to your PATH.
Stephen the Newbie - 25 Feb 2005 03:20 GMT
Ok, I think I understand, but let me just make sure that I understand
before I do anything that I won't be able to undo.
I found Control Panel > System > Advanced tab > Environment Variables
When I get to that window, there are 3 buttons: New, Edit, and Delete. I'm
guessing I want to hit New, name it PATH, and put the directory as the
value? There's already a variable listed as Path (not all upper case like
"PATH" is) that points to somewhere else. Is that a problem?
Also, I am not sure which directory to pick on my c drive. Under C:\
Program Files\Java\ I have:
j2re1.4.2_05
j2re1.4.2_06
jdk1.5.0_01
jre1.5.0_01
Is one of these the one I need? If so, which one?
Thanks so much for the easy to understand advice!
ak 47 - 25 Feb 2005 05:25 GMT
Please join some computer course instead of wasting ur time . Its always
better to go for training instead of struggling for hours doing all these
.For advanced level , u can study urself . What u r doing is trying to
learn the alphabets of a language . but u know how tedious it is . so learn
the alphabets from a trainer and then learn the details by self study .
This is my sincere advise .
Rassle - 20 Mar 2005 19:16 GMT
> Ok, I think I understand, but let me just make sure that I understand
> before I do anything that I won't be able to undo.
[quoted text clipped - 5 lines]
> value? There's already a variable listed as Path (not all upper case like
> "PATH" is) that points to somewhere else. Is that a problem?
Double click (or click edit) on the variable "Path" and add the
following line:
"C:\Program Files\Java\jdk1.5.0_01\bin"
Then click OK, OK, OK
If everything goes right you will be able to type in the following in
the command prompt:
javac MyFile.java (this compiles the java file)
java MyFile (this executes it)
Ryan Stewart - 25 Feb 2005 12:22 GMT
[...]
> http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html
>
[quoted text clipped - 3 lines]
> tutorial addresses this issue, but the tutorial is a bit out of date (does
> not mention how to fix the problem with windows XP command prompt).
[...]
The tutorial is fine. It addresses this issue very explicitly. The pink error
box in section "b. Compile the Source File." lists your error message and how to
handle it, including a link to a page that has detailed instructions for each MS
operating system.
Eitan - 26 Feb 2005 07:55 GMT
Try this link
http://java.sun.com/j2se/1.4.2/install-windows.html
> Hi, I am a total newbie here. I've been searching the web for a few hours
> looking for a good answer to my question, but have found nothing. Sorry
[quoted text clipped - 24 lines]
>
> Once again, sorry for the dumb question, but I am totally lost.