Hi,I'm fairly new to programming itself but as it is I'm very lazy or as I say it Time-Preserving. I try whatever I can to make creating, compiling and running programs faster. I do not know if this has ever been done but I have made my system in such a way that when I double-click on a java program i.e. *.java file it compiles and there is a *.class file in the same directory. Skipping the step where we usually open CMD.exe and compile it.

All I did was :Goto Control Panel --> Folder Options --> File Types(Tab)

and click on new(button), it soon asks for the File Extension.

There type in JAVA, A File Extension named JAVA is created.

So select it and click on the Advanced(Button) and create a new Action.

Maybe give the name Compile and associate it with javac.exe in your bin folder.

It should look like this:Action : CompileApplication used to perform Action : "C:\Java\JDK\bin\javac.exe" "%1"

Click The OK(Button) on both panes.

Now it should Autocompile when you double click on the JAVA file. I tried something similar with CLASS files but failed because It had no way to take the parameters.

______________________________________________________It is the simplest things that are most Complicated!