LFPS - Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Auto-Compile Java Programs

2 posters

Go down

Auto-Compile Java Programs Empty Auto-Compile Java Programs

Post by Sujith 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.
Sujith
Sujith
LSF Expert
LSF Expert

Posts : 126

http://osalfps.org

Back to top Go down

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

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

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

Posts : 46

http://futballfps.0wn0.com

Back to top Go down

Back to top

- Similar topics

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