-
reply plz
Dear Sir,
I Tanmay Sinha reading java as a very beginner.I 've installed Java software( jdk-6u11-windows-i586-p and
netbeans-7.0-ml-javaee-windows) on my computer.Now I want to write java program by command Prompt but I am not able
access it.So please help me....
I write Java program
class HelloWord
{
public static void main(string args[])
{
system.out.println("HelloWord");
}
}
and I save it in D dive(Location) as D:\mywork and then by command prompt when use it initial as d: & enter then get the information
D:\> but from here i am facing problems to use command prompt for compilation & run.
Thanks & regards
Tanmay Sinha
-
Re: reply plz
Have you read the tutorial on how to compile and execute a java program?
"Hello World!" for Microsoft Windows (The Java™ Tutorials > Getting Started > The "Hello World!" Application)
To copy the contents of the command prompt window:
Click on Icon in upper left corner
Select Edit
Select 'Select All' - The selection will show
Click in upper left again
Select Edit and click 'Copy'
Paste here.
-
Re: reply plz
i would suggest to to download eclipse IDE. it is the best way to program it automatically displays all the errors and also advices how to correct the errors
and the best part is it is free!!
-
Re: reply plz
I would suggest that you learn how the javac and java commands work first before getting an IDE.
Many students don't ever learn how java works when they start with an IDE. The IDE keeps them having to know the details that a good programmer should know.
After you get the first few programs working, then get the IDE.
-
Re: reply plz