File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Getting Started!!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Getting Started!!!!!" Watch "Getting Started!!!!!" New topic

Getting Started!!!!!

Jim Hooper

Joined: Dec 13, 2004
Posts: 13
ok, i'VE installed J2SDK V1.4.2 on my machine. I've taken the 'HelloWorld' test script attempted to run javac and keep getting this damn annoying error:

The name specified is not recognized as an
internal or external command, operable program or batch file.

I'm running NT4 (i know but it's a works PC) seemingly no service packs.
Has anyone PLEASE got any ideas on why it won't work!!!

Entered the CLASSPATH and modified the PATH variables.
I've uninstalled and reinstalled but still no joy.
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199


Welcome to JavaRanch!

First, a bit of business: you may not have read our naming policy on the way in. It requires that you use a full, real (sounding) first and last name for yourdisplay name. You can change your display namehere. Thanks.

Now, as to your problem: that's an error from the OS saying that javac isn't in your execution path. You need to make sure that the "bin" subdirectory of your Java installation is in the PATH environment variable. This has nothing to do with CLASSPATH and in fact, as a beginner, the best thing you can do is to have CLASSPATH not be defined at all -- the default is perfect.

Since you say you modified PATH already, go ahead and double check that. And note that command windows (or other processes) don't get the updated values of an environment variable you change in the control panel until they restart -- so close all your command windows and open new ones after making these changes.

[Jess in Action][AskingGoodQuestions]
Jim Hooper

Joined: Dec 13, 2004
Posts: 13
OK, apologies in the first for the name.

Have doubled checked this and path is fine. I read some documetation <a href="">here</a> that stated that NT4 required SP6 are you or anyone aware of this restriction and is this true? Is there anyway around this and why should NT require SP6 before it can run java?
J Williams

Joined: Nov 13, 2004
Posts: 10
You can try this: Go to the command line and type "Path" (without the quotes of course). This should list the current path that is searched on the machine. If you don't see the path to the java bin directory in there it is not configuring for some reason. I know you said you checked this already, but this will confirm if Windows is setting the path correctly.
Hope this helps you track down the problem.

"Three people cannot keep a secret." SCJP 1.4
Jim Hooper

Joined: Dec 13, 2004
Posts: 13
SORRY!! Apologies to you guys, 'twas me being a bit of a short sighted jerk. Missed a ':' from the path entry! (humble embarrasment; sloping off with tail, hands and head between legs)

Can you delete Posts? LOL
I agree. Here's the link:
subject: Getting Started!!!!!
It's not a secret anymore!