• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Beginners help

 
Sangeetha Komarraju
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hai..

Am new to java,

1.Can anybody guide me step by step...how to install java in my PC...with vista as OS ?
2.How to complie and run this small typical hello world program.

Thank You
 
Misha Ver
Ranch Hand
Posts: 470
 
Sangeetha Komarraju
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks..Misha...

In case of any further help...Ill post again
 
swapnl patil
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Download java from
http://java.sun.com/javaee/downloads/index.jsp?userOsIndex=6&userOsId=windows&userOsName=Windows

use notepad or editplus. dot go for Eclipse or other at the begining .

 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Download the latest JDK release here for the approriate platform and follow the instructions provided by the installation wizard.
I'd recommend you not choose the default installation path for Windows operating systems (i.e sub directory of "Program Files"), but that you pick a simple Java base directory for the JDK installation and your future Java projects (e.g C:\Java) and install the JDK there. Where ever you decide to install the JDK, that path will be your JAVA_HOME location, which you should add to system environment variables. I'm not on a Vista machine right now, but you can access the environment variables as an option somewhere under System Properties, which you can get to by pressing the Windows/Start key and the Pause/Break key simultaneously. Add a new key/value pair where the key should be JAVA_HOME and the value should be the path to the JDK root e.g C:\Java\jdk1.6.0_17. While your playing around with environment variables anyway, you should edit the PATH variable (or create it if it doesn't exist) and append the path to the bin sub directory of the JDK to it: JAVA_HOME\bin. Notice you can refer to the JAVA_HOME variable here, which is extremely convenient.

That's basically all you need to setup for now. If you want to check the installation just open up a command prompt anywhere and type in java -version which should print something like:

java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)


Edit: Ugh, too slow.
 
Campbell Ritchie
Sheriff
Pie
Posts: 49844
70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
swpnl patil wrote: . . .
use notepad or editplus. dot go for Eclipse or other at the begining .

You mean "don't go for Eclipse" surely.

Agree. Using an IDE (eg Eclipse, NetBeans) at the beginner's stage can actually make learning more difficult because you have to learn the IDE too.
I don't like NotePad; for programming I suggest NotePad2, NotePad++ or jEdit as much better products.
 
swapnl patil
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah, you can use any one except eclipse or Idea or other. That will help you to understand how java works.
 
Sangeetha Komarraju
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys...

Am done with installation without much hiccups

and I have run couple of sample programs...

I will ping you up guys again soon...wen I need help...
 
Campbell Ritchie
Sheriff
Pie
Posts: 49844
70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done getting it working
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic