Auto-Compile Java Programs

Go down

Auto-Compile Java Programs Empty Auto-Compile Java Programs

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

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 3329 days!

LSF Expert
LSF Expert

Posts : 126

Back to top Go down

Auto-Compile Java Programs Empty Re: Auto-Compile Java Programs

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

-kiran clown
LSF Regular
LSF Regular

Posts : 46

Back to top Go down

Back to top

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