This week's book giveaway is in the Testing forum.
We're giving away four copies of Data Structures the Fun Way: An Amusing Adventure with Coffee-Filled Examples and have Jeremy Kubica on-line!
See this thread for details.
  • 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

set an antry path?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok so I am as new as they get! ultra noob just started learning this stuff and I am trying to get this stuff working before I dive into any actual java Lessons.

So I have downloaded the SDK the API Documentation and have a text editor. ( Notepad++) ( Please recommend one better if you know one).

But it tells me "I need to set an entry to the path environment variable that points to the /bin directory inside the main java directory. so when I type (% javac ) at the command-line your terminal will know how to find the java compiler?"

I am reading "Head First java"and trying to make sure I get every step.

Thank you for your time and help.

 
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you have, your jdk installed in, for example, C:\Program Files\jdk-1.7, then you need to modify the PATH environment variable to include C:\Program Files\jdk-1.7\bin.

For more details, you can google for something like setting path variable. There may be an entry in this site's FAQ, but I'm too lazy to look. I think the "first cup o java" tutorial also covers it.
 
Bartender
Posts: 3323
86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

and have a text editor. ( Notepad++) ( Please recommend one better if you know one).


There are a number of freely available IDE's, you can google for a full list but 2 common ones for Java use are NetBeans and Eclipse.
You'll need to test them all to see which you prefer but I'd leave this until you are more accomplished at programming.
 
Marshal
Posts: 76830
366
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch
You will find more about adding entries to your PATH here in our FAQ. Or in the Oracle instructions. They do differ slightly. I think you need a JAVA_HOME if you use NetBeans.
I would advise against using an IDE at this stage. Notepad++ is excellent. Set up automatic indentation, syntax highlighting, bracket matching and automatic conversion of tab to 4 spaces, and it will format your code better.
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:
I would advise against using an IDE at this stage.



PLUS. PLUS.
 
You guys haven't done this much, have ya? I suggest you study this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic