File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "newbie here, help" Watch "newbie here, help" New topic
Author

newbie here, help

Larry Brink
Greenhorn

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:
A:\>javac Tree1.java
'javac' is not recognized as an internal or external command,
operable program or batch file.
A:\>
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
VariableValue
CLASSPATH D:\j2sdk1.4.1\bin\;.;
Variable nameVariable Value
PathD:\j2sdk1.4.1\bin\;.;
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.
Larry
chi Lin
Ranch Hand

Joined: Aug 24, 2001
Posts: 348
Larry,
I think you could modify your classpath setting
.;D:\j2sdk1.4.1\lib\tools.jar
Originally posted by Larry Brink:

VariableValue
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
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

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
    Sheriff

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


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

    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.
    Larry
     
    It is sorta covered in the JavaRanch Style Guide.
     
    subject: newbie here, help