This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line!
See this thread for details.
Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Path Problems  RSS feed

 
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
 
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
 
Java Cowboy
Sheriff
Posts: 16082
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.
 
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.
 
lowercase baba
Bartender
Posts: 12613
50
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!