Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

head first Java Book

 
Raman Moradi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i got an brain friendly guide head first java book... on page xxviii it says that i have to install API and Java 2 standard edtition and i have done that. In step 4 it says something about a path. i dont get it can i get some help.

I am 11 years old got a pretty good english my cousin is programming a game with eclipse and he was the one that inspired me to start with java i have always liked computers and wanted to know how they work..

Please dont comment '' Kid get out of here'' or '' you are to young for this !''

I just want some help. please
 
Raman Moradi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it will maybe say it is resolved but it is not !
 
Daryle Foulke
Greenhorn
Posts: 8
IntelliJ IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First off Welcome! Are you using a windows system? I did a simple google search and found this Setting JAVA_HOME. I hope it helps.
 
Raman Moradi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes i am using windows 7. i will look into the link Thanks
 
Raman Moradi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the page helped little i found the path that the book is talking about but what should i type the code in ? and compile it how ?
 
Campbell Ritchie
Sheriff
Posts: 48453
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a link of our own, and it is bound to be better. (‍) Here. Note there are several ways to set the PATH, and the Oracle installation instructions (I think ยง4) shows something slightly different. You are probably better off putting the JDK installation path at the beginning of the PATH than the end. And make sure to install the JDK not the JRE. And SE (=standard edition) not EE or ME.

And welcome to the Ranch
 
Campbell Ritchie
Sheriff
Posts: 48453
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Daryle Foulke wrote: . . . found this Setting JAVA_HOME. I hope it helps.
Afraid it won’t. It says to use the jre folder and you need the jdk folder.
 
Campbell Ritchie
Sheriff
Posts: 48453
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Raman Moradi wrote: . . . Please dont comment '' Kid get out of here'' or '' you are to young for this !'' . . .
You can learn Java at any age, but it would appear only in Sweden.
 
Campbell Ritchie
Sheriff
Posts: 48453
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, it’s not available in Sweden, only Norway.
 
Raman Moradi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for all the help but it is too hard for me to learn from this book i really epriciated all the help... But do you know any easier youtube java tutorials ? for beginners?
 
Campbell Ritchie
Sheriff
Posts: 48453
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HFJ is designed to be easy to read. Let’s take it really slowly.
Have you got your Java runtime working? and the compiler? What happens when you give the following instructions at the command line?
java -version
javac -version
You should get an output like this
[campbell@localhost java]$ java -version
java version "1.7.0_13"
Java(TM) SE Runtime Environment (build 1.7.0_13-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
[campbell@localhost java]$ javac -version
javac 1.7.0_13
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic