This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring Boot in Practice and have Somnath Musib on-line!
See this thread for details.
Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Add entry to PATH environment?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am learning java from a book and it says:

"...you need to add entry to your PATH environment variable that points to the /bin directory inside the main Java directory. For example, if the J2SDK put a directory on your drive called "j2sdk.1.5.0" look inside that directory and you'll find the "bin" directory where the Java binaries live. The bin directory i the one you need a path to, so when you type: "% javac" at the command line your terminal will know how to find the javac compiler."

But I'm not exactly sure what this is telling me to do. Any help would be awesome, thanks!
 
Marshal
Posts: 76110
362
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.
Is Ana your real last name?

The PATH problem causes more difficulties to beginners than almost anything else. What it means is that your OS will go and look for a program called "java" or "javac" and the PATH tells it where to look.
Read this Common Problems page from the Java Tutorials, particularly the bit about "java is not recognised etc" and where it tells you how to set the PATH permanently. If you are on Windows, the entry will begin with the drive letter (probably C) and end with bin, so a common entry would be "C:\Program Files\Java\jdk1.6.0_06\bin".
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic