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 'java' and 'javac' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark " Watch " New topic

'java' and 'javac'


Joined: Mar 10, 2006
Posts: 1
"'java[c]' is not reconized as an internal or external command" is the error i get and i have tryed a few things to fix that (i have j2se 1.5), first i updated the path variable, and only that one. then i tryed changing the dir in the command promt to the \bin and type "% javac" but no luck. i can run javas as long as there in the \bin file but that is a pain and i still can't compile them anyway. when i try to compile in the \bin file i come up with multible errors with simple commands like "system.out.println("hi");" please help
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2398
You need to recheck the PATH variable. As long as you have the bin directory in your PATH, you should be able to access javac and java.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Hi, welcome to the ranch! Are you in Windows or Unix? I think you used some terms from each and that may be part of the problem. See if these exercises help. That includes a link to the Sun's Classpath page. Sun's Getting Started may help, too.

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
marc weber

Joined: Aug 31, 2004
Posts: 11343


Welcome to JavaRanch!

Please revise your display name to meet the JavaRanch Naming Policy. To maintain the friendly atmosphere here at the ranch, we like folks to use real (or at least real-looking) names, with a first and a last name.

You can edit your name here.

Thank you for your prompt attention, and enjoy the ranch!


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
I agree. Here's the link:
subject: 'java' and 'javac'
It's not a secret anymore!