This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to install java?" Watch "How to install java?" New topic
Author

How to install java?

Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 507

How to install java?


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

Joined: Nov 24, 2005
Posts: 14688
    
  16

http://faq.javaranch.com/java/how-to-create-java-program


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

Joined: Oct 07, 2010
Posts: 507

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
Sheriff

Joined: Oct 13, 2005
Posts: 44590
    
  34
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: 507

Hi..Thanks for the help...I created new variable called "path" and gave the complete bin location as the value. It worked!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to install java?
 
It's not a secret anymore!