aspose file tools*
The moose likes Beginning Java and the fly likes Unable to invoke javac from cmd prompt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Unable to invoke javac from cmd prompt" Watch "Unable to invoke javac from cmd prompt" New topic
Author

Unable to invoke javac from cmd prompt

Madhuri Jagannath
Greenhorn

Joined: Jan 27, 2013
Posts: 1
Hello there!
I am trying Java for the first time. I added the following to the Path variable:
C:\Program Files\Java\jdk1.7.0_11\bin
at the cmd prompt, i type % javac, like C:\>% javac, and it says :
% is not recognized as an internal or external command, operable program or batch file.

so i try just javac, like C:\>javac and i get:
Usage: javac <options> <source files>
where possible options include:
and a whole list of variables...

I am using Windows 7, i installed Java SE 7u11 JDK from the Oracle download site.

What am i missing?

Thanks,
M.
Aj Prieto
Ranch Hand

Joined: Sep 28, 2012
Posts: 72

To compile:


To run:


Da mihi sis bubulae frustum assae, solana tuberosa in modo Gallico fricta ac quassum lactatum coagulatum crassum.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36478
    
  16
The instructions may have said %javac, but the % sign there represents the prompt character. Miss out the % and it should work better
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to invoke javac from cmd prompt
 
Similar Threads
println
facing jdk installation problem for windows xp
javac: invalid flag: myfirstapp.java
the compilers not computing man!
Run a Java Program