• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

which java should i down load?

 
pj kruse
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am reading the book Head First Java.

I downloaded Java SE Development Kit 1.5 from java.sun.com.

Next thing to download is called a PATH. I have no idea where to look for this. If someone could explain it to me in the java i downloaded that would be great.
And if also I should have downloaded a different java let me know

Thanks
 
Campbell Ritchie
Sheriff
Pie
Posts: 49367
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch

Get the most recent thing called JDK without anything else. Here. Look for the thing they call JDK 6 update 17. Not JRE. Don't bother with NetBeans or GlassFish or J2EE at this stage.

You don't download the PATH, but set it on your computer. Look at the "common problems" page, and (if you are using DOS/Windows) look where it says "javac is not recognized . . ." That will give you links to setting the PATH.

People will also tell you to set a system classpath. That is usually mistaken and you don't usuallyneed a system classpath.
 
Campbell Ritchie
Sheriff
Pie
Posts: 49367
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another download link
 
pj kruse
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok I am so new to java where do I type in this javac HelloWorldApp.java to make the PATH

and also if I wanted to download API documentation how would I download this looking at this http://java.sun.com/j2se/1.5.0/docs/api/
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just so you know, Java 1.5 was EOL'd in October (give or take)-that means it's no longer officially supported unless you pay for support. You should be using Java 6.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15354
39
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pj kruse wrote:ok I am so new to java where do I type in this javac HelloWorldApp.java to make the PATH

Sun has a great series of tutorials for Java here.

Start with the Hello World tutorial. It explains in small, easy steps how to write, compile and run your first Java application. You type the javac command in a command prompt window; the tutorial explains you how to get that.
 
Campbell Ritchie
Sheriff
Pie
Posts: 49367
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where have you written your PATH? If on windows you will want it as an environment variable. I usually have it as a user environment variable on Linux. The common problems link I gave you yesterday has a link to setting the PATH in the installation instructions, under "javac is not recognized . . ."
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic