what all should i do to practice programs in my system without using netbeans or eclipse,
i tried with sun site, it has got jdk, kre, jde ee , which one to download & install,
how to make link path to command prompt to compiler,
please somebody helpme,
What you install is called jdk6update12. Don't install jre; jdk includes the jre.
As you have been told, set your system PATH and forget about the CLASSPATH at this stage.
Download a nice text editor designed for programming, eg jEdit, Notepad2, Notepad++, if you are using Windows. Notepad as included with Windows is not very good for programming.
Sorry, I had to download Notepad2 myself before trying it out.
I presume you have read the Java Tutorial section about the "hello world" application?
What you do is
Save the file in an appropriate location: create a "Java" folder somewhere, maybe in "my documents"
Save the file with an appropriate name, ClassName.java, where ClassName must be the same as the name of the class.
Write the Java code in Notepad2, and save again.
Open a command prompt and navigate to the folder where your .java file is. If you created a java file in my documents, you just write "cd Java".
write "javac ClassName.java"
Write "java ClassName"
Note where you do say .java and where you don't say .java. Look out for error messages. In the link I gave you, go up one folder (click on where it says "trail" at the top) and look for the "common problems" section.
Joined: Oct 13, 2005
Rob Prime wrote:
Campbell Ritchie wrote:Notepad as included with Windows is not very good for programminganything.
When www.vnunet.com recommended Notepad2 (and the similar Notepad++) as better text editors than Notepad (about 3-4 years ago) somebody wrote in to complain and said Notepad was good because it can support right-to-left writing.