• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 79153
377
  • 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".
 
reply
    Bookmark Topic Watch Topic
  • New Topic