aspose file tools*
The moose likes Beginning Java and the fly likes Beginners help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Beginners help" Watch "Beginners help" New topic
Author

Beginners help

Sangeetha Komarraju
Greenhorn

Joined: Dec 03, 2009
Posts: 7

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

Joined: Mar 03, 2008
Posts: 470
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html
Sangeetha Komarraju
Greenhorn

Joined: Dec 03, 2009
Posts: 7
thanks..Misha...

In case of any further help...Ill post again
swapnl patil
Ranch Hand

Joined: Aug 13, 2007
Posts: 80
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

Joined: Mar 10, 2008
Posts: 1817
    
    7

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.


Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39755
    
  28
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

Joined: Aug 13, 2007
Posts: 80
yeah, you can use any one except eclipse or Idea or other. That will help you to understand how java works.
Sangeetha Komarraju
Greenhorn

Joined: Dec 03, 2009
Posts: 7
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

Joined: Oct 13, 2005
Posts: 39755
    
  28
Well done getting it working
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Beginners help