• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java is not recognized as an internal or external command  RSS feed

 
narendra nath
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very new to Java. I installed JDK on windows vista. It got installed on C:\programfiles directory.

I installed IntelliJ and compiled the program without any issue and it ran fine from Intellij.

when I run it from commandpromt like javac C:\Java\Samples\HelloWorldExample.java, it says 'javac is not a recognized command'

please suggest if I am doing something wrong.

thanks
nath
 
Knute Snortum
Sheriff
Posts: 4288
127
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

You probably need to modify your PATH environment variable.
 
narendra nath
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Knute Snortum wrote:Welcome to the Ranch!

You probably need to modify your PATH environment variable.


Thank you so much
 
Campbell Ritchie
Marshal
Posts: 56595
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome again

I presume your new PATH has worked?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!