wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes How to install java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to install java?" Watch "How to install java?" New topic

How to install java?

Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

How to install java?

Are you better than me? Then please show me my mistakes..
Christophe Verré

Joined: Nov 24, 2005
Posts: 14687


[My Blog]
All roads lead to JavaRanch
Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

I followed the steps..But it failed..CMD is keep giving the error message "javac is not a recognized or a batch file...." like wise. I don't know whether I download the correct one or not. this is what I have downloaded."https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewFilteredProducts-SingleVariationTypeFilter"...Please help me......
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 37907
If you get that error, you need to set your PATH. It is explained in the link Christophe posted earlier.
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

Go to your Java install directory and then the bin directory. Then type java -version. It should print the java version. You can add that directory to your path environment variable which allows you to access Java from anywhere on your pc.

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

Hi..Thanks for the help...I created new variable called "path" and gave the complete bin location as the value. It worked!
It is sorta covered in the JavaRanch Style Guide.
subject: How to install java?
Similar Threads
un-install java
which java sdk?
Help I can't figure out how to install java jdk 7
installing MySQL