• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Installation  RSS feed

 
natt walters
Greenhorn
Posts: 17
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

I would like start learning java.
I just installed JDK 6u24 from sun.com.
When I try to compile Helloworld it says javac is not recognized.
Can anybody please help me how to define the class path and the essentials to compile and run java programs.

thankyou
 
Stephan van Hulst
Saloon Keeper
Posts: 7991
143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to set your PATH environment variable.

It's the same process as described here: http://www.coderanch.com/how-to/java/HowToSetTheClasspath

The difference is that the variable you need to set is PATH, not CLASSPATH; and it needs to point to the directory containing javac.exe
(on my system this is C:\Program Files\Java\jdk1.6.0_20\bin)
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
natt walters wrote:...Can anybody please help me how to define the class path...

As Stephan said, it's the PATH that you need to update. Please do NOT set a CLASSPATH.
 
Vishal Lad
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look over here, it has screenshots for easier understanding.

http://www.mycoding.net/2011/02/218/
 
Campbell Ritchie
Marshal
Posts: 56553
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have an FAQ about that.
 
Sunny Bhandari
Ranch Hand
Posts: 448
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi natt,

welcome to javaranch
 
natt walters
Greenhorn
Posts: 17
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much everyone .
I've done as instructed and started compiling and running a few programs.

I've also heard of the IDE(Eclipse) a great tool for programming.

Can you please advise me being a beginner is it good to start with the tool or stick to doing the normal way for now.

Thank you once again
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eclipse is a very good IDE, but if you're just starting to learn Java, it's better to start with a simple text editing program. Learn the basics of the Java programming language first. It will be overwhelming if you are trying to learn too many things at once - how the IDE works and how Java works.

A nice and simple text editor that has color syntax highlighting for Java is Notepad++.
 
natt walters
Greenhorn
Posts: 17
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!