aspose file tools*
The moose likes Beginning Java and the fly likes how to run Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to run" Watch "how to run" New topic
Author

how to run

Mrs.Noorulain faisal
Greenhorn

Joined: Jan 04, 2009
Posts: 6
i have installed java in c: program files and trying to run it from java directory
with javac Helloworld.java but it is not working
i get the message that javac file cannot be recognized

Kindly help me urgentlyyyyyyyyyy
James Tharakan
Ranch Hand

Joined: Aug 29, 2008
Posts: 580

Where is the *.java file stored??
From which dir you are exectuing the command.

SCJP 6
Why to worry about things in which we dont have control, Why to worry about things in which we have control ! !
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11422
    
  16

where is the javac.exe file saved, and is that directory in your PATH?


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39436
    
  28
So many people have that sort of problem that there is a section about it in the Java Tutorials. See whether that helps. Note there is a "common problems" page.
Kumaresh Vidhyasagar
Ranch Hand

Joined: Dec 05, 2008
Posts: 30
Set the path and classpath of the java directory as shown below.

1. Right Click My Computer and select properties.
2. click on Advanced tab and then click on Environmental variables button
3. click on New button of the system variables section and type the variable path as 'path' and variable value as 'java installed directory' + bin
(For eg: C:\Program Files\Java\jdk1.6.0_05\bin)


[Thumbnail for 2009-01-06_212306.png]

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39436
    
  28
Kumaresh Vidhyasagar wrote:Set the path and classpath of the java directory as shown below.
A useful piece of information there, complete with screenshot, but only set the PATH. Don't do anything with CLASSPATH at this stage.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to run