• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javac?

 
Arthur Okeke
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6337
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you set the PATH environment variable?

http://faq.javaranch.com/java/how-to-create-java-program#SettingJavahomeAndPath
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And are you sure you have a JDK not a JRE?
 
Arthur Okeke
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6337
79
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I missed the "don't" part. Anyway, I would recommend reinstalling the JDK.
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15495
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Campbell Ritchie
Sheriff
Pie
Posts: 50277
80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to JavaRanch

You have been given correct advice, from what you told us.
 
Arthur Okeke
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i just downloaded it again and everything works fine.
thanks to y'all
 
Campbell Ritchie
Sheriff
Pie
Posts: 50277
80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arthur Okeke wrote:i just downloaded it again and everything works fine.
thanks to y'all


Happy coding
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic