wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes javac? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "javac?" Watch "javac?" New topic
Author

javac?

Arthur Okeke
Greenhorn

Joined: Oct 27, 2010
Posts: 6
i don,t have the bin subfolder in my jdk folder i think it makes it impossible for javac to work as my cmd does not recognize 'javac'
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3602
    
  14

Have you set the PATH environment variable?

http://faq.javaranch.com/java/how-to-create-java-program#SettingJavahomeAndPath
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

And are you sure you have a JDK not a JRE?


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Arthur Okeke
Greenhorn

Joined: Oct 27, 2010
Posts: 6
yes i have installed jdk1.6.0_22 and i have set my enviroment variables but when i try to run "java -version" on my command promt it says
'javac' is not recognized as an internal or external command,
perable program or batch file.'
also I DON,T HAVE A BIN SUBFOLDER..
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3602
    
  14

Sorry, I missed the "don't" part. Anyway, I would recommend reinstalling the JDK.
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3068
    
  33

Arthur Okeke wrote:i don,t have the bin subfolder in my jdk folder i think it makes it impossible for javac to work as my cmd does not recognize 'javac'


Can you tell us in which directory you looked for the bin folder?
Usually its in: Java\jdk1.6.0_20\bin

Arthur Okeke wrote:yes i have installed jdk1.6.0_22 and i have set my enviroment variables but when i try to run "java -version" on my command promt it says


With what value did you set your PATH environment variable?


Mohamed Sanaulla | My Blog
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Arthur Okeke wrote:also I DON,T HAVE A BIN SUBFOLDER..

If your JDK installation directory really does not have a bin subfolder, then something is wrong with your JDK installation. Try re-installing the JDK.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38045
    
  22
And welcome to JavaRanch

You have been given correct advice, from what you told us.
Arthur Okeke
Greenhorn

Joined: Oct 27, 2010
Posts: 6
i just downloaded it again and everything works fine.
thanks to y'all
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38045
    
  22
Well done
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3068
    
  33

Arthur Okeke wrote:i just downloaded it again and everything works fine.
thanks to y'all


Happy coding
 
jQuery in Action, 2nd edition
 
subject: javac?
 
Similar Threads
invalid LOC header - How to overcome this Exception?
ant pkg won't work for installing I2P
Having Trouble Compiling
Command Line
compilation command