Auto-Compile Java Programs

View previous topic View next topic Go down

Auto-Compile Java Programs

Post by Sujith on Sun Jul 18, 2010 6:02 am

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 : Compile
Application 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!
Been on this forum since 2695 days!

avatar
Sujith
LSF Expert
LSF Expert

Posts : 126

http://osalfps.org

Back to top Go down

Re: Auto-Compile Java Programs

Post by kiran on Tue Aug 10, 2010 5:21 pm

superb!!!!!!!!!!!
-kiran clown
avatar
kiran
LSF Regular
LSF Regular

Posts : 46

http://futballfps.0wn0.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum