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 please ..i need help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "please ..i need help!" Watch "please ..i need help!" New topic
Author

please ..i need help!

reta reta
Greenhorn

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 :


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
reta reta
Greenhorn

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.

Joyce
Dirk Schreckmann
Sheriff

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 http://www.java.sun.com/j2se
2. Config your JAVA_HOME env in environment of System

//Window
You can setup in Environment Variable.

JAVA_HOME=dir to installed J2SDK

example :

JAVA_HOME=c:/j2sdk1.4

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

PATH=.;%JAVA_HOME%/bin;%PATH%

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

Joined: Aug 31, 2004
Posts: 295
Well....

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.

Cheers,
Swamy.
friso dejonge
Ranch Hand

Joined: Jul 11, 2002
Posts: 162
hi,

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)

regards,
friso


swimming certificate (A & B), shoelaces diploma, and some useless java ones.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: please ..i need help!
 
Similar Threads
Ending a do while statement in this situation?
Help How to Use Collections
Recursion Problem
Generic Binary Search for Ints & Strings
Casting strings