Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Beginning Java and the fly likes newbie here, help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "newbie here, help" Watch "newbie here, help" New topic

newbie here, help

Larry Brink

Joined: Aug 29, 2003
Posts: 4
Good day to all. I am just starting out with Java, I am taking class at a local college, actually for Web Analyst/Programmer. But any way, I did have the j2sdk1.4.1 installed on my computer, our instructor advised us that we will be using a program called BlueJ. After installing BlueJ I can not compile any thing at all from the command prompt, I get the message:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
D:\Documents and Settings\OURS>cd
D:\Documents and Settings\OURS
D:\Documents and Settings\OURS>A:
'javac' is not recognized as an internal or external command,
operable program or batch file.
Ok, so now what is wrong. What I did was completely uninstall the j2sdk1.4.1. and BlueJ. Reinstalled j2sdk1.4.1 and I get the same exact message. Below is what is set in the Enviroment variables on my computer.
(This is what is set in the Enviroment Variables
Enviroment Variables
CLASSPATH D:\j2sdk1.4.1\bin\;.;
Variable nameVariable Value
Now of course there is more to the Path Variable then what is shown above, but what you see abouve for the Path is added to the end of the Path. Any suggestions as to what I might try next. Please.
Thank You in advanced for any and all help from this message board. I have a feeling I will be visiting here quite often.
chi Lin
Ranch Hand

Joined: Aug 24, 2001
Posts: 348
I think you could modify your classpath setting
Originally posted by Larry Brink:

CLASSPATH D:\j2sdk1.4.1\bin\;.;

not so smart guy still curious to learn new stuff every now and then
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24195

While it's true that there's no point in having {JDKHOME}/bin on your CLASSPATH, there's also no reason for a beginner to have {JDKHOME}/lib/tools.jar on his CLASSPATH, either. A beginner should, generally, start with CLASSPATH not set at all -- the default behavior is fine.
In any case, the problem has to be one of the following:
  • There's no JDK installed at d:\j2sdk1.4.1\, or
  • The entry for this directory in the PATH variable isn't quite right, or the path is generally munged in some way, or
  • The command window doesn't "see" the PATH shown in the Control Panel. Changes to environment variables or don't affect command windows or application that were open previous to the change; you generally have to open a new command window to get the new variables.

  • [Jess in Action][AskingGoodQuestions]
    Marilyn de Queiroz

    Joined: Jul 22, 2000
    Posts: 9058
    Look in D:\j2sdk1.4.1\bin\ and see if the javac.exe file is really there.

    "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
    Larry Brink

    Joined: Aug 29, 2003
    Posts: 4
    Thanks to all that posted. I do finaly have it working, my settings were all correct, j2sdk1.4.1 is installed, I just seem to have a problem reading files from a certain removable disk, why I don't know that yet, but I will soon. At least I can now get down to learning this language. Again thanks to every one. Just hope it wasn't a dump question in the first place.
    I agree. Here's the link:
    subject: newbie here, help
    It's not a secret anymore!