DJ Kevin (Philippines)

Saturday, July 21, 2012

How to compile JAVA programs in GEANY Ide


+

Compiling JAVA programs made simple,
Features:
  • Setting-up will not affect ur registry files
  • No need to edit system variables
  • You can save ur .java file at any directories
  • Easy to set-up
  • Small file size (important files only)


Files to Download:

  • Java Compiler (extracted from glassfish, executable file)
         JavaCompiler x86.exe  (48mb) for 32-bit OS
         JavaCompiler x64.exe  (47mb) for 64-bit OS

            Know whether ur OS is 32 bit or 64 bit?
  • Geany Ide
         Geany 0.21 for Windows (8mb)

Step1: Open JavaCompiler.exe then click extract.
Step2: Install Geany 0.21 (Windows Vista/7 users may click run as admin in case of installation problem)
Step3: Goto Build>Set Build Commands



Step4: Put the following lines to geany build commands

Compile: C:\glassfish3\jdk7\bin\javac "%d\%f"
Execute: C:\glassfish3\jdk7\bin\java -classpath "%d" "%e"



Step5: Write your java program with same file name as the classname
Step6: Click Compile and Execute <F5>.

Enjoy Coding!

8 comments:

  1. I have installed java jdk 1.7.0_25 and directory of bin folder is C:\Program Files\Java\jdk1.7.0_25\bin .I am unable to compile it with geany.

    ReplyDelete
  2. sorry for late response,
    you can change the directory files on step 4 if you installed java in different folder, it would be

    Compile: "C:\Program Files\Java\jdk1.7.0_25\bin\javac" "%d\%f"
    Execute: "C:\Program Files\Java\jdk1.7.0_25\bin\java -classpath" "%d" "%e"

    ReplyDelete