The moose likes Beginning Java and the fly likes please ..i need help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "please ..i need help!" Watch "please ..i need help!" New topic

please ..i need help!

reta reta

Joined: Sep 27, 2004
Posts: 2
I want to compile a program but this is what i get 'javac' is not recognized as an internal or external command,operable program or batch file. can someone help??
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Please check JAVA_HOME and PATH environment in your computer.

example :

Java Developer, Thailand
reta reta

Joined: Sep 27, 2004
Posts: 2
thanks for your quick reply. can you explain more, please. many thanks
Joyce Lee
Ranch Hand

Joined: Jul 11, 2003
Posts: 1392
Hi Reta,

Do you have jdk installed on your computer? If not, you can follow the instructions given here.

Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
reta reta,

Welcome to JavaRanch!

We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.

We request that folks don't use obviously fictitious names, and I'm thinking that "reta reta" is not your real name.

Thanks Pardner! Hope to see you 'round the Ranch!

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Originally posted by reta reta:
thanks for your quick reply. can you explain more, please. many thanks

What do you want to solve this problem ?

Step to solve problem.
1. Install J2SDK such as J2SDK 1.4 from
2. Config your JAVA_HOME env in environment of System

You can setup in Environment Variable.

JAVA_HOME=dir to installed J2SDK

example :


and add env in PATH variable : for refer to program in bin directory of j2sdk.


3. After 1, 2 : you can compile/run java program in command line.
Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295

What do you need to know in this topic?

Do u need some insight into Environment variables and class path?

Assuming so,

There are certain variables called environment variables in our system.
We can set them by right - clicking on the MyComputer so on
(Revert back if you have some problem).

These environment variables are to store the path of the applications that
we will be making use of.

Suppose we are installing Java in our machine and using it.

We need to tell the machine where are we placing JDK. This is done
by an environment variable.

And classpath is nothing but a reference to the specific classes.
It is too an environment variable to tell any program, where it can find the associated
Class files and other files.

Hope this helps. Should you have some doubts, most welcome to get back.

friso dejonge
Ranch Hand

Joined: Jul 11, 2002
Posts: 162

to see if it works after setting the classpath, type:

java -version

that will display the jvm version which your program will use. (or none if nothing is installed)


swimming certificate (A & B), shoelaces diploma, and some useless java ones.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: please ..i need help!
It's not a secret anymore!