Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons this week in the Android 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: 499

How to install java?


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

Joined: Nov 24, 2005
Posts: 14687
    
  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: 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
Sheriff

Joined: Oct 13, 2005
Posts: 38045
    
  22
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!
 
jQuery in Action, 2nd edition
 
subject: How to install java?
 
Similar Threads
examlab
un-install java
which java sdk?
Help I can't figure out how to install java jdk 7
installing MySQL