Auto-Compile Java Programs
2 posters
LFPS - Forum :: Study Corner :: Computers :: Java
Page 1 of 1
Auto-Compile Java Programs
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.
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.
LFPS - Forum :: Study Corner :: Computers :: Java
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Tue Feb 14, 2012 9:02 pm by Sujith
» Kolaveri Di
Tue Nov 22, 2011 5:11 pm by Sujith
» Plane of Remembrance
Mon May 23, 2011 7:44 am by Sujith
» Board Exam Results 2011
Fri May 13, 2011 10:19 pm by Sujith
» Source Code
Wed May 04, 2011 8:06 pm by Sujith
» Rio
Wed May 04, 2011 8:04 pm by Sujith
» Fast and Furious 5
Wed May 04, 2011 7:56 pm by Sujith