• Post Reply Bookmark Topic Watch Topic
  • New Topic

Path Problems  RSS feed

 
Josh Nelbach
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All!

I have just started my first Java class and I am having a some major problems getting javac to work. I have read instructions and have watched YouTube vids and I am having no luck creating a path. I am totally new to this so please dumb it down for me

This is what I have put in the system variables to created a path, does it look right? C:\Program Files\Java\jdk1.7.0\bin;C:\Windows\System32\;C:\Windows\;C:

Thanks for the help
 
Aj Prieto
Ranch Hand
Posts: 75
Android Chrome Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to check your JDK version, there's usually an underscore somewhere in there.

For example mine is:
C:\Program Files\Java\jdk1.7.0_21\bin
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16057
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, after you've set the PATH environment variable in Windows, you need to close and re-open the command prompt window for it to see the change.
 
deepak veyan
Greenhorn
Posts: 10
Java MySQL Database Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Open CMD and check type path. Your path would be shown if you have configured it under PATH.Otherwise , type echo %VARIABLE_NAME%.Copy and see if you have pointed the path to the correct directory..
 
Josh Nelbach
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aj Prieto wrote:Try to check your JDK version, there's usually an underscore somewhere in there.

For example mine is:
C:\Program Files\Java\jdk1.7.0_21\bin


Cheers to you my friend! That was the problem! I cannot express my gratitude enough. I have been so stressed out over this because I have yet to even do my first example in the book. I have a long weekend ahead of me.
Thank you again! And thank you to everyone else who chimed in.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12562
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Josh Nelbach wrote:I have a long weekend ahead of me.

Folks here are always happy to help.

I see you are new, so you may want to consider reading our FAQ on HowToAskQuestionsOnJavaRanch (<---clicky). if you follow the advice there, you will be much less frustrated with the kind an quality of the answers.

and Welcome!!!
 
Josh Nelbach
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I see you are new, so you may want to consider reading our FAQ on HowToAskQuestionsOnJavaRanch (<---clicky). if you follow the advice there, you will be much less frustrated with the kind an quality of the answers.

and Welcome!!!

Sure thing. Thanks for the link.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!